SwiftUI in target (custom keyboard)
问题 Can't find any example of using SwiftUI in Keyboard Extension. I create an extension and trying to create simple SwiftUI Button with no action (it just prints debug text). But there is no visible button in Keyboard. Is it possible to create SwiftUI custom keyboard? struct SwiftUIButton: View{ let action: () -> () var body: some View{ Button(action: action){Text("Tap me")} } } class KeyboardViewController: UIInputViewController { @IBOutlet var nextKeyboardButton: UIButton! //1.insert this: