One of the best features of SwiftUI is being able to preview your code during development, but did you know that you can also use SwiftUI to preview your old-fashioned UIKit ViewControllers and Views?
Continue reading “Live preview for your UIKit views”
This is guest post. Thanks Daniel for welcoming me into your blog.
I recently came across Daniel’s post on how to define the launch screen of iOS apps by leveraging the new SwiftUI app lifecycle. Just a couple of fields in the
Continue reading “Guest Post: The Fix to stretched launch Images in SwiftUI”
Info.plist and a color assets plus an image and you are good to go. I was immediately sold on the approach. Simple and elegant.
Most of our apps rely on network calls to work, and thanks to URLSession and Codable, consuming REST APIs has become a lot easier these days. That said, we are still writing quite a bit of code to deal with async calls, JSON encoding and decoding, HTTP error handling, and more.
With that in mind, let’s write our own simple networking library, specifically designed to consume REST APIs without effort, using a ‘convention over configuration’ approach, alongside Combine, URLSession, and the Codable protocol.
Continue reading “Writing a Networking Library with Combine, Codable and Swift 5”
If you are using Transformable properties in CoreData, there is a chance (probably when dropping iOS 12 support) that you eventually face compiler warnings about your model properties not using secure Value transformers. While figuring this out, I decided to write a post, so here it is.
Continue reading “CoreData Transformable and NSSecureCoding in iOS 13+”
Gists are short bits of code you can share and reuse. They act as lightweight repos, feature version control, and can include anything from a string to multiple files. You can also embed them on any website, which is excellent to share examples, but unfortunately, there’s no way to change the default syntax highlighting. Let’s fix that.
Continue reading “Styling Gist embeds with CSS”