Post

Replies

Boosts

Views

Activity

Comment on Stop using MVVM for SwiftUI
Hi @azamsharp, sorry but I don't understand how this respond to my question. Your solution is valid when you create in a view a new object and after manipulate it you call save. What happens in edit, considering that SwiftData autosaves changes? What happens, If user edit BudgetCategory and change the name? How do you check that name already exists? Also, if for example you need to call another function only if the user confirms a change to the budget amount, how do you handle that?
Sep ’24