End-Of-Session: Created keyboard grid array

This commit is contained in:
2025-01-15 00:45:28 -05:00
parent f081cfa6f2
commit eeb19cb929
4 changed files with 43 additions and 19 deletions

View File

@@ -20,9 +20,9 @@ class KeyboardViewController: UIInputViewController {
override func viewDidLoad() {
super.viewDidLoad()
let hostController = UIHostingController(rootView: KeyboardView())
hostController.view.autoresizingMask = [.flexibleWidth, .flexibleHeight]
hostController.sizingOptions = [.intrinsicContentSize]
self.view.addSubview(hostController.view)
addChild(hostController)
@@ -64,5 +64,9 @@ class KeyboardViewController: UIInputViewController {
}
self.nextKeyboardButton.setTitleColor(textColor, for: [])
}
func sendText(text: String) {
textDocumentProxy.insertText(text)
}
}