In model-view-view model (MVVM) architecture the view model observes the model and provides data for the view by transforming it when needed. When the user interacts with the view and… Read more Observing a KVO compatible model in SwiftUI and MVVM →
I was looking into creating a view which has TextField with NumberFormatter. Typed text would show up in a separate label and when trying to enter non-numbers, the TextField would… Read more Validating string in TextField with NumberFormatter in SwiftUI →
In previous post “Dynamic user notification on Apple Watch with SwiftUI” I was looking into how to add WatchOS app to an existing project and how to create dynamic notifications.… Read more Fetching and displaying data on Watch app in SwiftUI →
CoreData is Apple’s object graph and persistence framework. It provides data sources for synchronising data with view. Let’s take a look on how to use those data sources in SwiftUI… Read more Using CoreData with SwiftUI →
Let’s build a simple app using MVVM (model-view-view model) where every SwiftUI view has its own view model. It’s going to be an app with two views: list of movies… Read more MVVM in SwiftUI →
One building block for navigating from one view to another is NavigationView which is a representation of UINavigationController in UIKit. This time, let’s take a look on how to transition… Read more Animating view transitions in SwiftUI →
This year Apple added CGAnimateImageAtURLWithBlock and CGAnimateImageDataWithBlock for animating GIFs and APNGs on all the platforms to the ImageIO framework. We can pass in URL or data and get callbacks… Read more Animating GIFs and APNGs with CGAnimateImageAtURLWithBlock in SwiftUI →
Let’s build a conversation view which shows a list of messages and has input text field with send button. Sent and received messages are managed by Conversation object. Conversation object… Read more Creating chat view with Combine and SwiftUI →