UIViewController
-
Adds an NotificationCenter with name and Selector
Declaration
Swift
open func addNotificationObserver(_ name: String, selector: Selector) -
Removes an NSNotificationCenter for name
Declaration
Swift
open func removeNotificationObserver(_ name: String) -
Removes NotificationCenter’d observer
Declaration
Swift
open func removeNotificationObserver() -
Adds a NotificationCenter Observer for keyboardWillShowNotification()
⚠️ You also need to implement
keyboardWillShowNotification(_ notification: Notification)Declaration
Swift
open func addKeyboardWillShowNotification() -
Adds a NotificationCenter Observer for keyboardDidShowNotification()
⚠️ You also need to implement
keyboardDidShowNotification(_ notification: Notification)Declaration
Swift
public func addKeyboardDidShowNotification() -
Adds a NotificationCenter Observer for keyboardWillHideNotification()
⚠️ You also need to implement
keyboardWillHideNotification(_ notification: Notification)Declaration
Swift
open func addKeyboardWillHideNotification() -
Adds a NotificationCenter Observer for keyboardDidHideNotification()
⚠️ You also need to implement
keyboardDidHideNotification(_ notification: Notification)Declaration
Swift
open func addKeyboardDidHideNotification() -
Removes keyboardWillShowNotification()‘s NotificationCenter Observer
Declaration
Swift
open func removeKeyboardWillShowNotification() -
Removes keyboardDidShowNotification()‘s NotificationCenter Observer
Declaration
Swift
open func removeKeyboardDidShowNotification() -
sRemoves keyboardWillHideNotification()‘s NotificationCenter Observer
Declaration
Swift
open func removeKeyboardWillHideNotification() -
Removes keyboardDidHideNotification()‘s NotificationCenter Observer
Declaration
Swift
open func removeKeyboardDidHideNotification() -
Undocumented
Declaration
Swift
@objc open func keyboardDidShowNotification(_ notification: Notification) -
Undocumented
Declaration
Swift
@objc open func keyboardWillShowNotification(_ notification: Notification) -
Undocumented
Declaration
Swift
@objc open func keyboardWillHideNotification(_ notification: Notification) -
Undocumented
Declaration
Swift
@objc open func keyboardDidHideNotification(_ notification: Notification) -
Undocumented
Declaration
Swift
open func keyboardWillShowWithFrame(_ frame: CGRect) -
Undocumented
Declaration
Swift
open func keyboardDidShowWithFrame(_ frame: CGRect) -
Undocumented
Declaration
Swift
open func keyboardWillHideWithFrame(_ frame: CGRect) -
Undocumented
Declaration
Swift
open func keyboardDidHideWithFrame(_ frame: CGRect) -
Undocumented
Declaration
Swift
open func hideKeyboardWhenTappedAround(cancelTouches: Bool = false) -
Undocumented
Declaration
Swift
@objc open func dismissKeyboard()
-
Returns maximum y of the ViewController
Declaration
Swift
open var top: CGFloat -
Returns minimum y of the ViewController
Declaration
Swift
open var bottom: CGFloat -
Returns Tab Bar’s height
Declaration
Swift
open var tabBarHeight: CGFloat -
Returns Navigation Bar’s height
Declaration
Swift
open var navigationBarHeight: CGFloat -
Returns Navigation Bar’s color
Declaration
Swift
open var navigationBarColor: UIColor? -
Returns current Navigation Bar
Declaration
Swift
open var navBar: UINavigationBar? -
EZSwiftExtensions
Declaration
Swift
open var applicationFrame: CGRect
-
Pushes a view controller onto the receiver’s stack and updates the display.
Declaration
Swift
open func pushVC(_ vc: UIViewController) -
Pops the top view controller from the navigation stack and updates the display.
Declaration
Swift
open func popVC() -
Hide or show navigation bar
Declaration
Swift
public var isNavBarHidden: Bool -
Added extension for popToRootViewController
Declaration
Swift
open func popToRootVC() -
Presents a view controller modally.
Declaration
Swift
open func presentVC(_ vc: UIViewController) -
Dismisses the view controller that was presented modally by the view controller.
Declaration
Swift
open func dismissVC(completion: (() -> Void)? ) -
Adds the specified view controller as a child of the current view controller.
Declaration
Swift
open func addAsChildViewController(_ vc: UIViewController, toView: UIView) -
Adds image named: as a UIImageView in the Background
Declaration
Swift
open func setBackgroundImage(_ named: String) -
Undocumented
Declaration
Swift
public func hideKeyboardWhenTappedAroundAndCancelsTouchesInView()
UIViewController Extension Reference