setToolbarHidden(_:animated:)
Changes the visibility of the navigation controller’s built-in toolbar.
Declaration
func setToolbarHidden(_ hidden: Bool, animated: Bool)Parameters
Discussion
You can use this method to animate changes to the visibility of the built-in toolbar.
Calling this method with the animated parameter set to false is equivalent to setting the value of the isToolbarHidden property directly. The toolbar simply appears or disappears depending on the value in the hidden parameter.