remove back button from navigation bar swift code example
Example 1: remove back button from navigation bar swift
self.navigationItem.leftBarButtonItem = nil;
Example 2: remove back button swift
self.navigationItem.setHidesBackButton(true, animated: true);