         }
     }
 
+    /// Text for the label on the right. Setting this property instead of the `text` property of the `rightLabel` to trigger Auto Layout automatically.
     @IBInspectable public var rightText: String? {
         get {
             return rightLabel.text

        return label
    }

    public let leftLabel = labelFactory()
    public let rightLabel = labelFactory()

    @IBInspectable public var leftText: String? {
        get {
            return leftLabel.text


import UIKit

/// A switch control
@IBDesignable public class Switch: UIControl {

    let backgroundLayer = RoundLayer()
