Puneet MittalUnderstanding GCD with ExamplesIn the previous article, we discussed what synchronous and asynchronous tasks are, and how we can use GCD to dispatch tasks synchronously…1d ago1d ago
Puneet MittalDemystifying GCD (Grand Central Dispatch) in SwiftIn this article, we’ll explore multithreading in Swift.2d ago2d ago
Puneet MittalDemystifying Property Wrappers in SwiftIn Swift, we have something called property wrappers. As the name suggests, property wrappers allow us to wrap a property to perform…May 17May 17
Puneet MittalinStackademicDemystifying UITableViewDiffableDataSource in SwiftWhen designing a UI using UIKit in Swift, one of the most common elements we use is UITableView. When using UITableView, we work with…May 1May 1
Puneet MittalUnit testing private methods in SwiftWhen writing test cases, we generally want to test the business logic of the code. A general format that we follow while writing unit tests…Apr 27Apr 27
Puneet MittalTypecasting in Swift DemystifiedTypecasting: Typecasting involves converting a value from one type to another. Swift, offering polymorphism, permits multiple types to be…Mar 3Mar 3
Puneet MittalExplaining Generics in SwiftIn Swift, generics allow us to write reusable code for different data types. To understand this further, let’s first look at a problem and…Feb 17Feb 17
Puneet MittalImplementing Swift higher-order functions.Higher-order functions are functions that either accept other functions as arguments or return functions themselves. If that sounds…Feb 11Feb 11
Puneet MittalAll About Escaping Closures in SwiftThis article assumes that you have prior knowledge of what closures are and how they are used in Swift. If you are unfamiliar with closures…Feb 9Feb 9
Puneet MittalDemystifying Closures in Swift — Part IIIIn the first and second parts, we discussed what closures are, how we use them in Swift, and some other features of closures.Feb 8Feb 8