This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func viewDidLoad() { | |
// assign bar button, to left bar item | |
let profileLeft = UIBarButtonItem(image: #imageLiteral(resourceName: "user-icon"), style: .plain, target: nil, action: #selector(HomeViewController.toProfile(_:))) | |
self.navigationItem.leftBarButtonItem = profileLeft | |
} | |
func toProfile(_ sender: UIButton) { | |
// set root to UserProfileViewController |