Post

Replies

Boosts

Views

Activity

「iPadOS」No shortcut discoverability HUD when hold down the Command key on iPadOS
MacOS: Version 11.0 Beta (20A4300b) Xcode: Version 12.0 beta 2 (12A6163b) The following code works on the MacOS Target with menu within menu bar, but no shortcut discoverability HUD on iPadOS Target when user hold down the Command key import SwiftUI @main struct SwiftUIHubApp: App {     var body: some Scene {         WindowGroup {             ContentView()         }         .commands {             CommandMenu("Shape") {                 Button("New Shape") {                     print("New Shape")                 }                 .keyboardShortcut("S", modifiers: [.command, .shift, .control])             }         }     } }
2
0
713
Jul ’20
How to initialize a PKToolPicker after iOS 14?
Xcode 12.0 beta points out the following code with a warning: let toolPiker = PKToolPicker.shared(for: UIApplication.mainWindow) // warning: 'shared(for:)' was deprecated in iOS 14.0: Create individual instances instead. And I tried to use the following code, but the view display without any toolPicker let toolPiker = PKToolPicker()
4
0
2.4k
Jul ’20