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
Reply to EXC_BAD_ACCESS When saving core data
I've managed to rewrite it to work on a private context and it seems to be working, I've done the conversions several times and so far no crash. Now if I could just speed it up a bit more, its taking about 20 minutes to do 1100 images
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Jul ’25
Reply to EXC_BAD_ACCESS When saving core data
When adding the launch argument it straight away crashes on the fetch in the getHowManyProjectsToUpdate() method with Thread 9: EXC_BREAKPOINT (code=1, subcode=0x199aa51c4) The below is printed to the console CoreData: annotation: Core Data multi-threading assertions enabled.
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Jun ’25
Reply to EXC_BAD_ACCESS When saving core data
Not sure why that was in there twice, shouldn't be. I did originally save outside of the project loop but put it inside due to the crashing, as it would allow it to continue from where it left off.
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Jun ’25
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:
Replies
Boosts
Views
Activity
Nov ’24
Reply to UIImage causes memory to run out
After a bit of digging it appears the issue isn't related to to conversion itself. It's occurring when writing the data to core data. I can resolve it by refreshing the context after each project save, but not sure if its the best way of doing it.
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to Updating from Navigation view to NavigationStack
My previous view has the navigation stack in it
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’23
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:
Replies
Boosts
Views
Activity
May ’22