hide 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)