MUNavigationBar

@IBDesignable
open class MUNavigationBar : MUNibView

Class that act like UINavigationBar with more customizable options.

  • A UIImage for the left button.

    Declaration

    Swift

    @IBInspectable
    open dynamic var leftButtonImage: UIImage? { get set }
  • The separator’s color.

    Declaration

    Swift

    @IBInspectable
    open dynamic var separatorColor: UIColor { get set }
  • The separator’s width.

    Declaration

    Swift

    @IBInspectable
    open dynamic var separatorWidth: CGFloat { get set }
  • The separator’s height multiplier (should be between 0.0 and 1.0).

    Declaration

    Swift

    @IBInspectable
    open dynamic var separatorHeightMultiplier: CGFloat { get set }
  • The main button.

    Declaration

    Swift

    public var mainButton: MUButton { get }
  • The current title that is displayed by the main button.

    Declaration

    Swift

    @IBInspectable
    open var mainButtonTitle: String { get set }
  • The main button’s font.

    Declaration

    Swift

    @objc
    public dynamic var mainButtonTitleFont: UIFont { get set }
  • The main button’s horizontal alignment.

    Declaration

    Swift

    @objc
    public dynamic var mainButtonTitleAlignment: UIControl.ContentHorizontalAlignment { get set }
  • Optional: The IBInspectable version of the main button’s horizontal alignment.

    Declaration

    Swift

    @IBInspectable
    open var mainButtonTitleAlignmentInt: Int { get set }
  • The main button’s title color.

    Declaration

    Swift

    @IBInspectable
    open dynamic var mainButtonTitleColor: UIColor { get set }
  • The main button’s highlighted title color.

    Declaration

    Swift

    @IBInspectable
    open dynamic var mainButtonTitleHighlightedColor: UIColor { get set }
  • The activity indicator’s color of the main button.

    Declaration

    Swift

    @IBInspectable
    open dynamic var mainButtonProgressColor: UIColor { get set }
  • Show or hide the progress indicator of the main button.

    Declaration

    Swift

    @IBInspectable
    open dynamic var mainButtonIsLoading: Bool { get set }
  • The main button’s state. (Won’t work with application’s state and reserved state).

    Declaration

    Swift

    @objc
    public dynamic var mainButtonState: UIControl.State { get set }
  • The main button’s alpha value for disabled state.

    Declaration

    Swift

    @IBInspectable
    open dynamic var mainButtonDisabledAlphaValue: CGFloat { get set }
  • The main button’s background color.

    Declaration

    Swift

    @IBInspectable
    open dynamic var mainButtonBackgroundColor: UIColor { get set }
  • The main button’s border color.

    Declaration

    Swift

    @IBInspectable
    open dynamic var mainButtonBorderColor: UIColor { get set }
  • The main button’s border width.

    Declaration

    Swift

    @IBInspectable
    open dynamic var mainButtonBorderWidth: CGFloat { get set }
  • The main button’s corner radius.

    Declaration

    Swift

    @IBInspectable
    open dynamic var mainButtonCornerRadius: CGFloat { get set }
  • The main button’s vertical padding.

    Declaration

    Swift

    @IBInspectable
    open dynamic var mainButtonVerticalPadding: CGFloat { get set }
  • The main button’s horizontal padding.

    Declaration

    Swift

    @IBInspectable
    open dynamic var mainButtonHorizontalPadding: CGFloat { get set }
  • 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 }
  • Will trigger each time the main button is tapped.

    Declaration

    Swift

    public func didTap(button: MUButton)