Post

Replies

Boosts

Views

Activity

Reply to Problem with SwiftData
For folks wondering, I had to do this number: .alert("Please confirm model deletion. Cannot be undone.", isPresented: $showDeletionConfirmation, actions: { Button("Confirm", role: .destructive) { record.deleteAllTheThings() dismiss() Task { await MainActor.run { context.delete(record) try? context.save() } } } Button("Cancel", role: .cancel) { } }) And dismiss is in my view as: @Environment(\.dismiss) var dismiss
Jul ’23
Reply to Problem with SwiftData
For folks wondering, I had to do this number: .alert("Please confirm model deletion. Cannot be undone.", isPresented: $showDeletionConfirmation, actions: { Button("Confirm", role: .destructive) { record.deleteAllTheThings() dismiss() Task { await MainActor.run { context.delete(record) try? context.save() } } } Button("Cancel", role: .cancel) { } }) And dismiss is in my view as: @Environment(\.dismiss) var dismiss
Replies
Boosts
Views
Activity
Jul ’23
Reply to Assert in line 204: PhotoGrammetrySession crashes while running with more than 10 images
I see this issue too
Topic: Spatial Computing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’23
Reply to iOS Simulator: "Cannot find ObjectCaptureSession in scope"
I comment out any views and sessions and methods with object capture with: #if targetEnvironment(simulator) #endif It's tedious but it works.
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’23
Reply to bundle id is missing when creating an app
Having the same issue. All developer agreements signed, multiple unused Bundle IDs created, signed out, signed back in. Still blank.
Replies
Boosts
Views
Activity
Mar ’24