title: Adding bar button items to nav bar without navigation controller in Swift
body: <p>I'm trying to add multiple bar button items to each side of a <em>custom</em> nav bar.</p>
  
  <p>I'm using the following method but nothing shows up.</p>
  
  <p>There are a few threads on this in Obj-C but I'm struggling to translate the syntax. Is there a workaround for this in Swift?</p>
  
  <pre><code>@IBOutlet weak var navBar: UINavigationBar!
  
      override func viewDidLoad() {
          var iconOne = UIImage(named: "iconOne")
          var iconTwo = UIImage(named: "iconTwo")
  
          var buttonOne:UIBarButtonItem = UIBarButtonItem(image: iconOne, style: UIBarButtonItemStyle.Plain, target: self, action: nil)
          var buttonTwo:UIBarButtonItem = UIBarButtonItem(image: iconTwo, style: UIBarButtonItemStyle.Plain, target: self, action: nil)
  
          self.navBar.setItems([buttonOne,buttonTwo], animated: true)
      }
  </code></pre>