Here are the steps: If you allow Xcode to create a project, go to the ViewController.swift file. Here you can create a way out.
@IBOutlet var text : UITextField?
Now you can connect the text string to the text field in the storyboard. You can do this by choosing an editorβs assistant. Then the control drags the line from the outlet to the code in the text box.
After the text field is connected, you can add code to create the border in the viewDidLoad function.
class ViewController: UIViewController { @IBOutlet var text : UITextField? override func viewDidLoad() { super.viewDidLoad()
source share