I'm currently building an app which has a series of views. When a user clicks on one of these views, I want it to perform an action via a function.
How do I allow this view to complete a function?
I can't create an outlet for it where I can call a function inside the body like with a button.
I'm very new to Swift so there may be something I'm missing, but there doesn't seem to be anything obvious having had a Google and read around.
To hopefully demonstrate my point, the below image is a given view.
When the user clicks on this view, I want them to be taken to a URL where they can send a message.
I think I've got the URL part, I just need to be able to call the function in question when that View gets pressed on.