zona de juegos rápida UITextField genera un teclado que es demasiado grande

Rápido en el patio de juegos en Mac OS. Cuando el usuario hace clic en un campo de texto UI, aparece un teclado pero es muy grande en comparación con la vista y solo las primeras teclas están disponibles.

ejemplo mínimo:

import UIKit
import PlaygroundSupport

class TesterViewController : UIViewController {
var testTextField : UITextField!
override func loadView() {
    let view = UIView()
    view.backgroundColor = .white

    testTextField = UITextField()
    testTextField.borderStyle = .roundedRect
    testTextField.text = ""
    view.addSubview(testTextField)
    testTextField.translatesAutoresizingMaskIntoConstraints = false

    NSLayoutConstraint.activate([
        testTextField.topAnchor.constraint(equalTo: view.topAnchor, constant: 20),
        testTextField.leadingAnchor.constraint(equalTo: view.leadingAnchor, constant: 20),
        ])

    self.view = view
    }
}
PlaygroundPage.current.liveView = TesterViewController()

captura de pantalla

Respuestas a la pregunta(1)

Su respuesta a la pregunta