Pinnedanshul jainEscaping and non – escaping closures in swiftIn Swift, a closure is a self-contained block of functionality that can be passed around and used in your code. When you define a closure…Mar 8, 2023Mar 8, 2023
Pinnedanshul jainHow Defer block worked in swift ?In Swift, a defer block is used to specify a block of code that will be executed just before the current scope is exited. The defer…Mar 7, 2023Mar 7, 2023
Pinnedanshul jainHow Swift uses Automatic Reference Counting (ARC) to manage memory?The basic idea behind ARC is to keep track of the number of references to an object, and automatically release the object’s memory when it…Mar 7, 2023Mar 7, 2023
anshul jainGenerics in swiftGenerics allow you to write flexible and reusable code that can work with different types. By using generics, you can define functions…Mar 8, 2023Mar 8, 2023