UINavigationBar

extension UINavigationBar

Extension created to allow the developer to modify the 'bottom border' of the UINavigationBar. This allows for the white highlight under the UINavigationBar

  • Creates a ‘bottom border’ for the UINavigationBar by creating a new UIView of height height (@param), setting its background color to color (@param) adding it as a subview.

    Declaration

    Swift

    func setBottomBorderColor(color: UIColor, height: CGFloat)