Help with alarm clock app

I am having some trouble with coding an alarm app, at the moment I am trying to make the app so once the switch is turned on, the app sends a notification to the user when the time chosen in the time picker is reached. All help is appreciated.

This is the code I have so far.

the iboutlet should be outside the function

if possible all iboutlets should be at the top just above the viewDidLoad function so it will be easier to spot and maintain