concept IBAction in category ios

This is an excerpt from Manning's book Hello Swift!: iOS app programming for kids and other beginners.
In this code, you declared the IBAction with the @IBAction tag and then the keyword func. @IBAction says you want to create an action for a button, and the func part tells Swift that you’re creating a function. After the opening brace, you’re telling Swift that the code you’ll type in will be executed by a button click; in other words, this opening brace indicates the start of the function code. The closing brace tells Swift that you’re no longer typing code for that button; in other words, this closing brace is the end of the function code. (You learn more about functions in chapter 8.) The displayToLabel() part is the name of the function. This name is what you use to access it in the IB (like the name of the IBOutlet).
Now you have to create the IBOutlets, which allow controls such as text fields to have names your code can use, to access the values your users will enter in them. You also have to create the IBActions, which let you connect controls such as buttons to the code to be executed when they’re clicked.