UIViewController
extension UIViewController: ServiceProvider
-
Report screen name
Declaration
Swift
func report(screen name: String)Parameters
nameName of screen
-
Opt out of Dark Mode
Declaration
Swift
func setLightMode()
-
Locate the main tab bar controller
Declaration
Swift
var mainTBC: MainTBC? { get } -
Dismiss all currently presented controllers
Declaration
Swift
func dismiss(presentations from: UIViewController)Parameters
fromView controller to unwind to
-
Hide navigation bar
Declaration
Swift
func hide(navBar animated: Bool)Parameters
animatedWhether to animate
-
Hide tool bar
Declaration
Swift
func hide(toolBar animated: Bool)Parameters
animatedWhether to animate
-
Show navigation bar
Declaration
Swift
func show(navBar animated: Bool, style: Styler? = nil)Parameters
animatedWhether to animate
-
Show tool bar
Declaration
Swift
func show(toolBar animated: Bool)Parameters
animatedWhether to animate
-
Call when ready to listen, like
viewDidLoadDeclaration
Swift
func startKeyboardListening() -
Call when finished listening, like
deinitDeclaration
Swift
func stopKeyboardListening()
View on GitHub
UIViewController Extension Reference