Sometimes it is helpful to see things in context. Here is a minimal project that hides the "back" text but still shows the arrow.
Storyboard
There is a show segue from the "Show Second View Controller" button to the second view controller.
I also added a Navigation Item to the second view controller so that it would have a title. This is optional. It does not affect the back button.
Code
FirstViewController.swift
import UIKit
class FirstViewController: UIViewController {
@IBAction func showSecondViewControllerButtonTapped(sender: UIButton) {
// hide the back button text
navigationItem.backBarButtonItem = UIBarButtonItem(title: "", style: .plain, target: nil, action: nil)
}
}
SecondViewController.swift
import UIKit
class SecondViewController: UIViewController {
// Nothing at all needed here
}
On the storyboard select the navigation item for the first view controller (not the second). Just enter a space for the Back Button text.