 fileprivate extension UIView {
     
     enum Anchor {
-        case Top
-        case Bottom
+        case top
+        case bottom
     }
     
     func attach(anchor: Anchor, to view: UIView) {

        } else {
            
            switch anchor {
            case .Top:
                NSLayoutConstraint(item: self, attribute: .top, relatedBy: .equal, toItem: view, attribute: .top, multiplier: 1.0, constant: 0).isActive = true
            case .Bottom:
                NSLayoutConstraint(item: self, attribute: .bottom, relatedBy: .equal, toItem: view, attribute: .bottom, multiplier: 1.0, constant: 0).isActive = true
            }
            

        if #available(iOS 9, *) {
            
            switch anchor {
            case .top:
                topAnchor.constraint(equalTo: view.topAnchor).isActive = true
            case .bottom:
                bottomAnchor.constraint(equalTo: view.bottomAnchor).isActive = true
            }
            
