Replacing attributed text in UITextView with UndoManager supportWhen working on apps with text editing capabilities, a must have feature is to allow users to undo their changes, UITextViews makes this easier via the undoManager property. Text changes performed with the replaceRange:withText: are automatically reg...1 min read·andresandswift.comJan 1, 2024
Observing CoreData fetch request results from view models in SwiftUICoreData and SwiftData provide property wrappers that allow us to react to data changes (@FetchRequest and @Query respectively) unfortunately, if you want to move away the data handling from the view as it's the case with MVVM, you won't be able to u...2 min read·andresandswift.comDec 29, 2023
NavigationSplitView and MVVM in SwiftUISwiftUI NavigationSplitView + MVVM3 min read·andresandswift.comDec 28, 2023