PULabel
@IBDesignable
open class PULabel : UILabel, PUXIBLocalizable, PUInspectable
PowerUpSwift: The subclass of UILabel
that allows the editing of additional UIKit properties via the Interface Builder.
-
Declaration
Swift
@IBInspectable open var xibLocKey: String? { get set }
-
Declaration
Swift
@IBInspectable open var cornerRadius: CGFloat { get set }
-
Declaration
Swift
@IBInspectable open var borderWidth: CGFloat { get set }
-
Declaration
Swift
@IBInspectable open var borderColor: UIColor? { get set }
-
Declaration
Swift
@IBInspectable open var shadowRadius: CGFloat { get set }
-
Declaration
Swift
@IBInspectable open var shadowOpacity: Float { get set }
-
PowerUpSwift: The top padding. Defaults to 0.
Declaration
Swift
@IBInspectable open var topInset: CGFloat
-
PowerUpSwift: The left padding. Defaults to 0.
Declaration
Swift
@IBInspectable open var leftInset: CGFloat
-
PowerUpSwift: The bottom padding. Defaults to 0.
Declaration
Swift
@IBInspectable open var bottomInset: CGFloat
-
PowerUpSwift: The right padding. Defaults to 0.
Declaration
Swift
@IBInspectable open var rightInset: CGFloat
-
PowerUpSwift: The padding on all sides that is set programmatically.
Example
powerUpLabel.insets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
Declaration
Swift
open var insets: UIEdgeInsets { get set }