Any action: drag, add, delete... But only first. Start program, do something, Undo... Crash. Start program, do something, do something, Undo, Undo... crash.
Thread 1: EXC_BAD_ACCESS (code=1, address=0x1699bf8020c0)...
Adding undoManager?.setActionName("add Point") changes nothing.
Post
Replies
Boosts
Views
Activity
Hm, You have partially right ;) System added buttons work, but Delete button — which is custom — doesn't.
"""
struct MyApp: App {
var body: some Scene {
DocumentGroup(newDocument: { MyDocument() }) { group in
ContentView(document: group.document)
.navigationSubtitle(group.document.name)
}
.commands {
CommandGroup(replacing: CommandGroupPlacement.pasteboard) {
Button("Delete") {
deleteSelectedObject.send()
}
.keyboardShortcut(.delete, modifiers: [])
}
}
...
}
}
"""
Is that blocks Core Animation down to a deepest view? Or just in one?
https://feedbackassistant.apple.com/feedback/11756060 Did my best, I'm designer, not programmer. Even English is not my native language.