Async Animations in SwiftUI
Jun 22, 2021, 9:44 AM
SwiftUI comes with some convenient animation capabilities out of the box. Using the withAnimation function, any interaction that triggers a state update will be animated. This allows us to add some great UI experiences to our apps with...
Combining Core Data with Generics
Jun 2, 2021, 7:57 AM
If you've caught the Combine bug, chances are you are beginning to leverage the framework for all sorts of asynchronous logic in your code base. One such area that I've found myself interacting with a lot lately in this regard is Core...
Wrapping Dependencies in SwiftUI
May 20, 2021, 9:01 AM
Dependency injection (DI) is a requirement when it comes to putting together a modular and maintainable code base. But similar to other concepts, DI can end up being a challenge when managing dependencies for larger projects often...
The Core Data CloudKit Paradox
May 12, 2021, 8:02 AM
What came first? the chicken or the egg? The ancient paradox that describes the problem of determining cause and effect. Maybe the answer is both? This oddly resonates with a common problem when it comes to projects that utilize the...
Adaptable Interactions with Core Data
May 7, 2021, 8:10 AM
Core Data has evolved over the years as one of Apple's most valued frameworks. Within a matter of minutes, a developer can add an object management persistence system that supports a long list of built-in features such as change tracking,...
Abstracting Navigation in SwiftUI
Apr 29, 2021, 9:44 AM
At first glance, navigation in SwiftUI seems pretty straightforward. With a combination of NavigationView, NavigationLink and .sheet, we can quickly link views together in ways that resemble UIKit.
But when an app grows more than a...
Side Effects with Combine
Apr 20, 2021, 9:58 AM
One of the benefits of adopting Combine's publisher approach to asynchronous programing is that every operation is a stream or pipeline that we can subscribe and react to via powerful operators.
This works really well for situations where...
Managing View State With Combine
Apr 14, 2021, 1:16 PM
Note: while this article turns to SwiftUI for building the interface, the patterns suggested can be applied to UIKit.
SwiftUI's built in state management system does a great a job in providing an out of the box data flow solution...