controller and swift