MUAvatar
@IBDesignable
open class MUAvatar : MUNibView
Class that act like UIButton with more customizable options.
-
The object that acts as the delegate of the avatar.
Declaration
Swift
@IBOutlet public weak var delegate: MUAvatarDelegate?
-
The avatar’s border width.
Declaration
Swift
@IBInspectable open dynamic var borderWidth: CGFloat { get set }
-
The avatar’s border color.
Declaration
Swift
@IBInspectable open dynamic var borderColor: UIColor { get set }
-
The avatar’s style.
Declaration
Swift
open var style: MUCornerStyle { get set }
-
Optional: The IBInspectable version of the avatar’s style.
Declaration
Swift
@IBInspectable open dynamic var styleInt: Int { get set }
-
The avatar’s corner radius.
Declaration
Swift
@IBInspectable open dynamic var radius: CGFloat { get set }
-
The avatar’s image.
Declaration
Swift
@IBInspectable open dynamic var avatarImage: UIImage? { get set }
-
The avatar’s placeholder image shown if no image defined.
Declaration
Swift
@IBInspectable open dynamic var placeholderImage: UIImage? { get set }
-
Default setup to load the view from a xib file.
Declaration
Swift
override open func xibSetup()
-
Lays out subviews.
Declaration
Swift
override open func layoutSubviews()
-
The natural size for the receiving view, considering only properties of the view itself.
Declaration
Swift
override open var intrinsicContentSize: CGSize { get }