what is iboutlet in swift?
An IBOutlet (Interface Builder outlet) is a variable which is a reference to a UI component. An IBAction (Interface Builder action) is a function which is called when a specific user interaction occurs. You want work to happen when you hit a button? You create an IBAction and define the work inside of it.