set back button on toolbar swift stack overflow code example
Example: show back button in navbar swift
let backButton = UIBarButtonItem()
backButton.title = "New Back Button Text"
self.navigationController?.navigationBar.topItem?.backBarButtonItem = backButton