Post

Replies

Boosts

Views

Activity

Reply to List Cell - Modifying associated object causes reload of whole list
On loading the view I get ProjectEditColourListView: @self, @identity, _viewContext, _editMode, _colourList, @64, @88, _searchText, _isShowingFilterView, _appSetting, _filters changed. ProjectEditColourListView: @self changed. ProjectEditColourListView: @88 changed. Then after selecting a cell ProjectEditColourListView: @88 changed. ProjectEditColourListView: @self changed. ProjectEditColourListView: @88 changed. ProjectEditColourListView: @self changed. ProjectEditColourListView: @self changed.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’24
Reply to Filtered list when going back from pushed view
Seems like I can alter the onAppear method to do what I want .onAppear() {             items.nsPredicate = NSPredicate(format: "series = %@ AND amount = 0", series)             if(!searchText.isEmpty) {                 items.nsPredicate = NSPredicate(format: "series = %@ AND amount = 0 AND name CONTAINS[cd] %@", series, searchText)             }         }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’22