Awaiting WebSockets in SwiftUIWebSockets have become the standard network protocol for chat and event-driven based applications given their ability to provide a persistent communication channel between clients and a server. Rather than poll a server for results at set intervals, ...Nov 10, 2021 ยท 6 min readobscuredpixels.com
Async Animations in SwiftUISwiftUI 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 minimal code. ...Jun 22, 2021 ยท 7 min readobscuredpixels.com
Combining Core Data with GenericsIf 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 Data. When Appl...Jun 2, 2021 ยท 6 min readobscuredpixels.com
Wrapping Dependencies in SwiftUIDependency 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 resulting in massiv...May 20, 2021 ยท 5 min readobscuredpixels.com
The Core Data CloudKit ParadoxWhat 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 NSPersistentCloud...May 12, 2021 ยท 5 min readobscuredpixels.com