Swift Call Function On Button Click, You only have to … I have a ViewController that calls a class to build a menu.