             {
                 // We're first on stack so show done button
                 doneButton = UIBarButtonItem(
-                    barButtonSystemItem: UIBarButtonSystemItem.Done,
+                    barButtonSystemItem: UIBarButtonSystemItem.done,
                     target: self,
                     action: Selector("doneButtonPressed:"))
                 
                 // Set appearance
                 if let done = doneButton {
-                    done.setBackgroundImage(nil, forState: .Normal, barMetrics: .Default)
-                    done.setBackgroundImage(nil, forState: .Normal, barMetrics: .Compact)
-                    done.setBackgroundImage(nil, forState: .Highlighted, barMetrics: .Default)
-                    done.setBackgroundImage(nil, forState: .Highlighted, barMetrics: .Compact)
-                    done.setTitleTextAttributes([String : AnyObject](), forState: .Normal)
-                    done.setTitleTextAttributes([String : AnyObject](), forState: .Highlighted)
+                    done.setBackgroundImage(nil, for: .Normal, barMetrics: .default)
+                    done.setBackgroundImage(nil, for: .Normal, barMetrics: .compact)
+                    done.setBackgroundImage(nil, for: .highlighted, barMetrics: .default)
+                    done.setBackgroundImage(nil, for: .highlighted, barMetrics: .compact)
+                    done.setTitleTextAttributes([String : AnyObject](), for: .Normal)
+                    done.setTitleTextAttributes([String : AnyObject](), for: .highlighted)
                     
                     self.navigationItem.rightBarButtonItem = done
                 }

    }

    func configurePage(page: ZoomingScrollView, forIndex index: Int) {
        page.frame = frameForPageAtIndex(index)
        page.index = index
        page.photo = photoAtIndex(index)
        page.backgroundColor = areControlsHidden ? UIColor.blackColor() : UIColor.whiteColor()
    }

    var dequeueRecycledPage: ZoomingScrollView? {

    }

    public override func preferredStatusBarStyle() -> UIStatusBarStyle {
        return .lightContent
    }

    public override func preferredStatusBarUpdateAnimation() -> UIStatusBarAnimation {
        return .slide
    }

    func cancelControlHiding() {
