how to get rid of the back button in navigation bar swiftui code example
Example 1: remove back button from navigation bar swift
self.navigationItem.leftBarButtonItem = nil;
Example 2: remove back button text nav bar swift
navigationItem.backBarButtonItem = UIBarButtonItem(title: "", style: .plain, target: nil, action: nil)