Post

Replies

Boosts

Views

Activity

Reply to Enable Undo CoreData SwiftUI
Here's the solution, via -> https://stackoverflow.com/questions/73422048/enable-undo-coredata-swiftui @Environment(\.undoManager) var undoManager // ... var body: some View { // ... .onAppear { viewContext.undoManager = undoManager } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’22
Reply to Enable Undo CoreData SwiftUI
Here's the solution, via -> https://stackoverflow.com/questions/73422048/enable-undo-coredata-swiftui @Environment(\.undoManager) var undoManager // ... var body: some View { // ... .onAppear { viewContext.undoManager = undoManager } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to Using .searchable on macOS causes focus to remain in the search field
Anyone knows if it's fixed in Ventura?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to Restoring macOS window size after close using SwiftUI WindowsGroup
Does not seem doable in SwiftUI as of macOS 12. Will see what's announced in the next WWDC.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’22