我正在尝试使当前放置在警报中的文本字段中的字体大小更大:
func showAlert() {
let ac = UIAlertController(title: "Title", message: "Message", preferredStyle: .alert)
// Add text field
ac.addTextField(configurationHandler: { textField in
let heightConstraint = NSLayoutConstraint(item: textField, attribute: .height, relatedBy: .equal, toItem: nil, attribute: .notAnAttribute, multiplier: 1, constant: 100)
textField.addConstraint(heightConstraint)
textField.minimumFontSize = 100
})