MUCard
@IBDesignable
open class MUCard : MUNibView
Class that provide a header and a content view
A view with customizable options as:
- A header on the top with title and detail labels.
- A content view that can be anything of type UIView.
-
The card’s style.
Declaration
Swift
open var style: MUCornerStyle { get set }
-
The card’s header text alignment
Declaration
Swift
@objc open dynamic var textAlignment: NSTextAlignment { get set }
-
The card’s header title text font
Declaration
Swift
@objc open dynamic var titleFont: UIFont { get set }
-
The card’s header detail text font
Declaration
Swift
@objc open dynamic var detailFont: UIFont { get set }
-
The card’s border width.
Declaration
Swift
@IBInspectable open dynamic var borderWidth: CGFloat { get set }
-
The card’s border color.
Declaration
Swift
@IBInspectable open dynamic var borderColor: UIColor { get set }
-
Optional: The IBInspectable version of the card’s style.
Declaration
Swift
@IBInspectable open dynamic var styleInt: Int { get set }
-
Optional: The IBInspectable version of the card’s text alignment.
Declaration
Swift
@IBInspectable open dynamic var textAlignmentInt: Int { get set }
-
The card’s corner radius.
Declaration
Swift
@IBInspectable open dynamic var radius: CGFloat { get set }
-
The card’s header title text color.
Declaration
Swift
@IBInspectable open dynamic var titleColor: UIColor { get set }
-
The card’s header detail text color.
Declaration
Swift
@IBInspectable open dynamic var detailColor: UIColor { get set }
-
The card’s header title text.
Declaration
Swift
@IBInspectable open var title: String { get set }
-
The card’s header detail text.
Declaration
Swift
@IBInspectable open var detail: String { get set }
-
Define the top padding of the card’s header
Declaration
Swift
@IBInspectable open dynamic var topPadding: CGFloat { get set }
-
Define the top padding of the card’s content
Declaration
Swift
@IBInspectable open dynamic var contentTopPadding: CGFloat { get set }
-
Define the left padding of the card’s content
Declaration
Swift
@IBInspectable open dynamic var contentLeftPadding: CGFloat { get set }
-
Define the right padding of the card’s content
Declaration
Swift
@IBInspectable open dynamic var contentRightPadding: CGFloat { get set }
-
Define the bottom padding of the card’s content
Declaration
Swift
@IBInspectable open dynamic var contentBottomPadding: CGFloat { get set }
-
Define the horizontal padding of the header
Declaration
Swift
@IBInspectable open dynamic var headerHorizontalPadding: CGFloat { get set }
-
Add content inside the card’s content view placeholder
Declaration
Swift
public func add(contentView customView: UIView)
-
Default setup to load the view from a xib file.
Declaration
Swift
override open func xibSetup()
-
The natural size for the receiving view, considering only properties of the view itself.
Declaration
Swift
override open var intrinsicContentSize: CGSize { get }