MUTopBar

@IBDesignable
open class MUTopBar : MUNibView

Class that define a title and a button on left side.

  • The object that acts as the delegate of the top bar.

    Declaration

    Swift

    @IBOutlet
    public weak var delegate: MUTopBarDelegate?
  • The current title.

    Declaration

    Swift

    @IBInspectable
    open var title: String { get set }
  • The button horizontal alignment.

    Declaration

    Swift

    @objc
    open dynamic var buttonAlignment: UIControl.ContentHorizontalAlignment { get set }
  • The title horizontal alignment.

    Declaration

    Swift

    @objc
    open dynamic var titleAlignment: UIControl.ContentHorizontalAlignment { get set }
  • The title’s font.

    Declaration

    Swift

    @objc
    open dynamic var titleFont: UIFont { get set }
  • A UIImage for the button.

    Declaration

    Swift

    @IBInspectable
    open dynamic var buttonImage: UIImage? { get set }
  • Define the left inset of the button.

    Declaration

    Swift

    @IBInspectable
    open dynamic var buttonLeftPadding: CGFloat { get set }
  • The title’s text color.

    Declaration

    Swift

    @IBInspectable
    open dynamic var titleColor: UIColor { get set }
  • Optional: The IBInspectable version of the title’s horizontal alignment.

    Declaration

    Swift

    @IBInspectable
    open dynamic var titleAlignmentInt: Int { get set }
  • Define if the top bar has or not a left button.

    Declaration

    Swift

    @IBInspectable
    open dynamic var showButton: Bool { get set }
  • The natural size for the receiving view, considering only properties of the view itself.

    Declaration

    Swift

    override open var intrinsicContentSize: CGSize { get }