Add Insets to UILabel without subclassing: UIKitWhen I tried implementing this, it seemed very simple in theory. But it took me to roller coaster ride. Why don’t you join as well?2d ago2d ago
Published inDev GeniusText v/s Attributed Text: A strange bugConsider a simple table view with only one kind of cell. The cell contains only one label.Jan 31Jan 31
@State + didSet: SwiftUIThis might be looking pretty weird. Why would we want to do such a thing?Jan 20Jan 20
How to respond to keyboard events in SwiftUIIn UIKit applications we simply add observers to keyboard notifications and viola, we are up and running.Jan 20Jan 20
Published inDev GeniusHow to create a splash screen with SwiftUI?Create a view just like any other SwiftUI view for your splash screen. It means yes you can use custom fonts in the splash screen itself…Jan 20Jan 20
Published inDev GeniusProperty Wrappers: iOSProperty wrappers have existed in Swift for a long time now. We even have macros which I see as the next step in evolution. But are we…Dec 21, 2024Dec 21, 2024
Published inDev GeniusParameter Packs: SwiftWe have many instances where we want to perform some action over varying data types. e.g. a simple Add operation can be used to add two…Oct 13, 2024Oct 13, 2024
Published inDev GeniusSwift Concurrency: Async and AwaitTo understand what’s Async-Await is used for, we need to know a few things about synchronous functions and asynchronous functions.Oct 12, 2024Oct 12, 2024
Capsule with gradient: iOSThis article will show how to make a capsule shape with a gradient. While building this we will also see how layers work, how masking…Sep 30, 2024Sep 30, 2024
Typed Throws: SwiftTyped throws are introduced with Swift 6.0. It lets us define the type of error that we can expect from a method.Sep 24, 2024Sep 24, 2024