 import UIKit
 
 class NibButton: UIButton {
-
+    
     // MARK: - Variables
     
-    var contentView: BFWNibView!
+    /// Override in subclass
+    var contentView: BFWNibView? {
+        return nil
+    }
     
     // MARK: - Init
     

    }
    
    func commonInit() {
        addSubview(contentView)
        contentView.pinToSuperviewEdges()
        contentView.translatesAutoresizingMaskIntoConstraints = false
        contentView.userInteractionEnabled = false
    }
    
    override func awakeFromNib() {

        titleLabel?.text = titleForState(.Normal)
        setTitle(nil, forState: .Normal)
    }
    
}
