UINavigationController
class UINavigationController : UIViewController
-
Sets the navigation bar to be transparent.
Declaration
Swift
public func transparentNavigationBar(barStyle: UIBarStyle = .default)Parameters
barStyleBar style to set.
-
Sets the navigation bar
Declaration
Swift
public func setNavigationBar(backgroundColor: UIColor? = nil, tintColor: UIColor? = nil, textStyle: TextStyle? = nil)Parameters
backgroundColorBackground color.
tintColorNavigation items tint color.
textStyleText style for title.
-
Removes the navigation bar border
Declaration
Swift
public func removeNavigationBarBorder() -
Adds a drop shadow to navigation bar.
Declaration
Swift
public func addDropShadow(color: UIColor = .clear, offset: CGSize = .zero, radius: CGFloat = 0, opacity: Float = 0)Parameters
colorDrop shadow color. Defaults to black.
offsetShadow offset.
radiusShadow radius.
opacityShadow opacity.
UINavigationController Extension Reference