I am trying to print multiple textField in middle of the view but I can't. I wanna clickable textfield.textfield should be middle of the view and font size will be manage as textfield size.
This is my code:
for i in 0..<characters.count
{
    let textField : UITextField = UITextField(frame : CGRect(x:(charWidth/13) * CGFloat(i) + CenterX, y:0, width:charWidth/14, height:charWidth/12))
    textField.font =  UIFont(name: "Noteworthy", size: 50)
    textField.text = "\(characters[i])".lowercased()
    textField.textAlignment = .center
    textField.resizeText()
    textField.adjustsFontSizeToFitWidth = true
    textField.minimumFontSize = 1.0
    textField.delegate = self
    textField.autocapitalizationType = .none
    //textView.font = UIFont
}
 
     
     
    