Why Conditional View Modifiers are a Bad Idea · objc.io
objc.io publishes books, videos, and articles on advanced techniques for iOS and macOS development.
objc.io publishes books, videos, and articles on advanced techniques for iOS and macOS development.
The work of writing maintainable code is an ongoing endeavor and some of my favorite problems to solve are ones that build maintainable systems. Maintainable systems are ones you can learn once, easily manipulate, and ideally take from project to project. My favorite part of building maintainable systems is that it minimizes the amount of work I need to do when starting a new project, and like it is for many programmers hitting ⌘ + ⇪ + N to start a new project is one of the most satisfying feelings in the world for me.
Throwing properties and custom subscripts that throw allows us to catch failures from read-only accessors and handle unhappy paths.
When we talk about modular app, we rarely mention how complex it can be over time and get out of hand. In most cases, importing frameworks into one another is a reasonable solution but we can do more. Let’s explore how with dependency inversion in Swift and how to create order into our components.
Article mostly for historical record. Will try to publish an update without the inner actor stuff (no longer needed in Xcode 13 beta 5). Having written it though it seems a shame to jus
What Swift’s @unknown attribute does, and why the compiler tells us to use it when switching on certain enums.
Learn how to test your SwiftUI iOS views in a simple and fast way using snapshot testing.
I've been playing with intelligent code generation for a couple of years now, and I'd like to show you how to achieve this with SourceKit.
Understanding memory management has always been an important topic to avoid memory performance issues and crashes. A good way to understand something is to ask questions about how it works. This…
This article teaches you how to saves, updates, reads, and deletes data in both iOS and macOS using Keychain Services in Swift.
How Swift 5.5 enables computed properties to become either throwing or asynchronous, and what sort of situations that these new capabilities could become useful in.
We'll cover what they are, how to create them, how to fetch feature flags from an API and all of the other benefits they enable.
An exploration of the private @_alwaysEmitIntoClient attribute
SwiftUI Release 3 brings a few generic view modifiers that allow us to handle semantically similar operations for different views in the very same way. One of these view modifiers is onSubmit, which we can use to manage both forms and search fields. This week we will talk about another view modifier that SwiftUI provides us to display confirmation dialogs.
Async let allows executing multiple async methods in parallel and awaiting all results together for better performance in your apps.
StaticString is an interesting type in Swift. Let's see how it works!
Personal site of Filip Němeček with blog, selected projects, apps and more
Jordan Morgan returns to the show to discuss some of the key new APIs and frameworks that were announced at WWDC21, and how they can be integrated into the apps that we build, now that about two months have passed since the conference took place.
SwiftUI Release 3 brought us a new declarative approach for handling submitted values. Text fields, forms, search bars allow users to submit values that we can take and react to them using the new onSubmit view modifier. This week we will learn how to use the onSubmit view modifier and what benefits it provides us.