Ternary operator in Swift explained
Published on: July 7, 2025Tons of languages have support for ternary expressions. In this post we learn what ternaries look like in Swift, and when we can replace them with if expressions.
Read postTons of languages have support for ternary expressions. In this post we learn what ternaries look like in Swift, and when we can replace them with if expressions.
Read postUniversal Links are a fantastic way to allow users to share your app’s content through URLs that work on the web, iOS devices, and more. Learn how you can set up Universal Links for your app by setting up entitlements as well as your server.
Read postIt’s no secret that Swift concurrency can be pretty difficult to learn. There are a lot of concepts that are different from what you’re used to when you were writing code in GCD. Apple recognized this in one of their vision documents and they set out to make changes to how concurrency works in Swift […]
Read postA lot of modern apps have a networking component to them. This could be because your app relies on a server entirely for all data, or you’re just sending a couple of requests as a back up or to kick off some server side processing. When implementing networking, it’s not uncommon for developers to check […]
Read postOnce you start using Swift Concurrency, actors will essentially become your standard choice for protecting mutable state. However, introducing actors also tends to introduce more concurrency than you intended which can lead to more complex code, and a much harder time transitioning to Swift 6 in the long run. When you interact with state that’s […]
Read postThe Xcode 16.3 beta is out, which includes a new version of Swift. Swift 6.1 is a relatively small release that comes with bug fixes, quality of life improvements, and some features. In this post, I’d like to explore two of the new features that come with Swift 6.1. One that you can start using […]
Read postOn iOS 17 and newer, you have access to the Observable macro. This macro can be applied to classes, and it allows SwiftUI to officially observe properties on an observable class. If you want to learn more about Observable or if you’re looking for an introduction, definitely go ahead and check out my introduction to […]
Read postWhen Apple released Xcode 16 last year, they made the Swift 6 compiler available along with it. This means that we can create new projects using Swift 6 and its compile-time data race protections. However, the big question for many developers is: Is 2025 the right time to adopt Swift 6 fully, or should we […]
Read postCode has dependencies. It’s something that I consider universally true in one way or another. Sometimes these dependencies are third party dependencies while other times you’ll have objects that depend on other objects or functionality to function. Even when you write a function that should be called with a simple input like a number, that’s […]
Read postWe all know that print is the most ubiquitous and useful debugging tool in a developer’s toolbox. Sure, we have breakpoints too but what’s the fun in that? Sprinkling some prints throughout our codebase to debug a problem is way more fun! And of course when we print more than we can handle we just […]
Read postLearn everything you need to know about Core Data and how you can use it in your projects with Practical Core Data. It contains:
The book is available as a digital download for just $39.99!
Learn more