Post

Replies

Boosts

Views

Activity

Default "Multiplatform" application on Xcode 12 beta 3 fails to run with macOS target?
If I create a new project using the multiplatform application template in Xcode 12 beta 3, and select the "(macOS)>My Mac" target, it fails to run with OSStatus error -10825. This is on BigSur beta 2 on an Intel Mac. Anyone else seeing this? What am I missing? ======== Details The operation couldn’t be completed. (OSStatus error -10825.) Domain: NSOSStatusErrorDomain Code: -10825 User Info: {     "LSFunction" = "LSOpenStuffCallLocal";     "_LSLine" = 3617; } - System Information macOS Version 10.16 (Build 20A4300b) Xcode 12.0 (17189.4)
2
0
1.2k
Jul ’20
SwiftUI TextEditor custom context menu on macOS
I'd like to add a custom context menu item to a TextEditor component. In particular, when targeting the Mac, I'd like to have it appear in the right button menu when editing text. I have been unable to make this work for a Mac target either using .contextMenu() or by adding a menu item to UIMenuController.shared.menuItems in UITextView control bridged to SwiftUI via UIViewRepresentable. Does anyone have a working example? As a bonus question, what exactly is .contextMenu() supposed to do when applied to a SwiftUI TextEditor component on MacOS?
0
0
675
Jul ’20