CustomNavigationBar

@IBDesignable
public class CustomNavigationBar : UINavigationBar

Wrapper around UINavigationBar. Makes this controll fully customisable. Access to UINavigationBar should be done only by using class implemented in this class. If something is missing, add it.

  • Setter and getter for leftBarButton color.

    Declaration

    Swift

    @IBInspectable
    public var leftBarButtonColor: UIColor! { get set }
  • Setter and getter for leftBarButton image.

    Declaration

    Swift

    @IBInspectable
    public var leftBarButtonImage: UIImage! { get set }
  • Setter and getter for rightBarButton color.

    Declaration

    Swift

    @IBInspectable
    public var rightBarButtonColor: UIColor! { get set }
  • Setter and getter for rightBarButton image.

    Declaration

    Swift

    @IBInspectable
    public var rightBarButtonImage: UIImage! { get set }
  • Setter and getter for title.

    Declaration

    Swift

    @IBInspectable
    public var title: String! { get set }
  • Setter and getter for titleColor.

    Declaration

    Swift

    @IBInspectable
    public var titleColor: UIColor! { get set }
  • Getter for leftBarButton.

    Declaration

    Swift

    public var leftBarButton: UIBarButtonItem?
  • Completion block triggered when leftBarButton is clicked.

    Declaration

    Swift

    public var onLeftBarButtonClick: (() -> Void)?
  • Getter for rightBarButton.

    Declaration

    Swift

    public var rightBarButton: UIBarButtonItem?
  • Completion block triggered when rightBarButton is clicked.

    Declaration

    Swift

    public var onRightBarButtonClick: (() -> Void)?
  • Required initialiser for xib instancing.

    Declaration

    Swift

    required public init?(coder aDecoder: NSCoder)
  • Initialiser for instantioning from code. Use this when creating instance from code.

    Declaration

    Swift

    override public init(frame: CGRect)