iOS Keyboard is mostly unusable in playgrounds
Originator: | hannes.oud.dev | ||
Number: | rdar://33917909 | Date Originated: | 16-Aug.-2017 04:09 PM |
Status: | Open | Resolved: | |
Product: | Developer Tools | Product Version: | Xcode 9 beta 5 |
Classification: | Other Bug | Reproducible: | Always |
Summary: The keyboard in playgrounds is always large and thus often cut off partly. This makes it unfeasible to develop in playgrounds (in Xcode) when keyboard input is involved. The keyboard in playgrounds should match the size or size-class of the live view, i.e. using iPhone sized Keyboard for smaller live view controllers. Steps to Reproduce: // 1. create an empty playground and paste this. // 2. tap the textfield import UIKit import PlaygroundSupport class MyViewController : UIViewController { override func loadView() { let view = UIView() view.backgroundColor = .white let textField = UITextField() textField.frame = CGRect(x: 10, y: 200, width: 300, height: 20) textField.placeholder = "Tap here to show keyboard…" view.addSubview(textField) self.view = view } } PlaygroundPage.current.liveView = MyViewController() Expected Results: An iPhone sized keyboard should be fully shown Actual Results: An iPad sized keyboard is shown partly (cut off) Version: Xcode 9 beta 5 Notes:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!