MUHeader
@IBDesignable
open class MUHeader : MUNibView
Class that define a title and a detail description.
-
The current title.
Declaration
Swift
@IBInspectable open var title: String { get set }
-
The title’s font.
Declaration
Swift
@objc open dynamic var titleFont: UIFont { get set }
-
The title’s text color.
Declaration
Swift
@IBInspectable open dynamic var titleColor: UIColor { get set }
-
The current detail description.
Declaration
Swift
@IBInspectable open var detail: String { get set }
-
The detail’s font.
Declaration
Swift
@objc open dynamic var detailFont: UIFont { get set }
-
The detail’s text color.
Declaration
Swift
@IBInspectable open dynamic var detailColor: UIColor { get set }
-
The text’s horizontal alignment.
Declaration
Swift
@objc open dynamic var textAlignment: NSTextAlignment { get set }
-
Optional: The IBInspectable version of the text’s horizontal alignment.
Declaration
Swift
@IBInspectable open var textAlignmentInt: Int { get set }
-
The text’s vertical spacing.
Declaration
Swift
@IBInspectable open dynamic var spacing: CGFloat { get set }
-
The natural size for the receiving view, considering only properties of the view itself.
Declaration
Swift
override open var intrinsicContentSize: CGSize { get }
-
Return the height the header will have if constraint with this width.
Declaration
Swift
open func expectedHeight(for width: CGFloat) -> CGFloat
-
Return the size with a force sizeToFit (for unit tests only)
Declaration
Swift
internal func debugSize() -> CGSize