Puneet MittalDemystifying Metatypes in SwiftHave you ever come across the term Metatype in Swift? If not, or if you’ve only heard the name, keep reading.Aug 11Aug 11
Puneet MittalinDev GeniusDemystifying Substring in SwiftIf you’ve worked with Swift, you must be aware of Strings. A String is a collection of characters in Swift. Here is an example of a string:Aug 3Aug 3
Puneet MittalDemystifying DispatchQueue.main.syncThis article assumes you have prior knowledge of DispatchQueue, serial vs. concurrent queues, and sync vs. async tasks. If you lack an…Jul 6Jul 6
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…Jun 23Jun 23
Puneet MittalDemystifying GCD (Grand Central Dispatch) in SwiftIn this article, we’ll explore multithreading in Swift.Jun 22Jun 22
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 271Apr 271
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