 	}
 	
 	/// Title label.
-    open fileprivate(set) lazy var titleLabel = UILabel()
+    @IBInspectable
+    open let titleLabel = UILabel()
     
-	/// A convenience property to set the detailLabel text.
-	open var detail: String? {
+	/// A convenience property to set the detailLabel.text.
+	@IBInspectable
+    open var detail: String? {
 		get {
 			return detailLabel.text
 		}

	}
	
	/// Detail label.
    open fileprivate(set) lazy var detailLabel = UILabel()
	
    deinit {
        removeObserver(self, forKeyPath: "titleLabel.textAlignment")

		prepareTitleLabel()
		prepareDetailLabel()
	}
}

extension Toolbar {
    /// Prepares the titleLabel.
    fileprivate func prepareTitleLabel() {
        titleLabel.textAlignment = .center
        titleLabel.contentScaleFactor = Screen.scale
        titleLabel.font = RobotoFont.medium(with: 17)
        titleLabel.textColor = Color.darkText.primary
        addObserver(self, forKeyPath: "titleLabel.textAlignment", options: [], context: &ToolbarContext)
    }
    
    /// Prepares the detailLabel.
    fileprivate func prepareDetailLabel() {
        detailLabel.textAlignment = .center
        detailLabel.contentScaleFactor = Screen.scale
        detailLabel.font = RobotoFont.regular(with: 12)
        detailLabel.textColor = Color.darkText.secondary
    }
}
