title: Swift positioning of the button in custom toolbar (Google design material)
body: <p>I have a custom toolbar create by the google design material framework. Also, I would like to implement 3 button in the toolbar(at left, center and right). However, I could only find <code>.rightControl</code> and <code>.leftControl</code>. It could only place the button on the right or left. <strong>Which I would like to implement one at the center</strong>. How could I do it programmatically? </p>
  
  <pre><code>  private var toolbar: Toolbar!
  
  
  private func prepareToolbar() {
  toolbar = Toolbar()
  
  toolbar.width = 400
  toolbar.height = 80.0
  
  
  
  
  let image: UIImage? = MaterialIcon.cm.settings
  let logoBtn = UIImage(named: "buttonlogo") as UIImage?
  
  // Menu button.
  let menuButton: IconButton = IconButton()
  menuButton.pulseColor = MaterialColor.white
  menuButton.tintColor = MaterialColor.white
  menuButton.setImage(image, forState: .Normal)
  menuButton.setImage(image, forState: .Highlighted)
  
  let logoButton: IconButton = IconButton()
  logoButton.setImage(logoBtn, forState: .Normal)
  
    let searchButton: IconButton = IconButton()
    searchButton.pulseColor = MaterialColor.white
    searchButton.tintColor = MaterialColor.white
    searchButton.setImage(image, forState: .Normal)
    searchButton.setImage(image, forState: .Highlighted)
  
  
  toolbar.rightControls = [logoButton]
  //toolbar.rightControls = [searchButton]  &lt;---------
  toolbar.leftControls = [menuButton]
  
  
  view.addSubview(toolbar)
  
  
   }
  </code></pre>