![]() ![]() In this case, the View only updates when name changes, which then triggers your onChange, so there's no update after the contact changes and you're always left one step behind.īut, you need something like because otherwise you can't mutate the contact. So, you're not setting a truly new value, you're modifying an already existing value. In your case, though, CNMutableContact is a reference type. ![]() The cause of this is using for your works best with value types - whenever a new value is assigned to the property, it tells the View to re-render. SwiftUI: View does not update when state variable changes Setting currentPage, as it is a will reload the whole body. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |