UIViewController Extensions

Omar Albeik edited this page Dec 10, 2016 · 3 revisions

UIViewController extensions


Name Description
isVisible Check if ViewController is onscreen and not hidden.
navigationBar NavigationBar in a ViewController.


Name Return Description
addNotificationObserver(name: Notification.Name, selector: Selector) -- Assign as listener to notification.
removeNotificationObserver(name: Notification.Name) -- Unassign as listener to notification.
removeNotificationsObserver() -- Unassign as listener from all notifications.