-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Framework
Enabling developers to use the iPhone X notch space in creative ways.
The NotchToolkit framework is built using Apple's UIKit to create a UIView
subclass, NotchBar
that tracks the iPhone X notch in all orientations. Additionally, the NotchBar
can be configured using variables supported in the framework.
class
NotchImageView
The NotchImageView
is the class that handles initializing and configuring a NotchBar
with a UIImage
, initializing the protocols, and triggering protocols when an events are changed.
class
NotchToolbar
The NotchToolbar
is the class that handles initializing and configuring a NotchBar
with a UICollectionView
, initializing the protocols, and triggering protocols when an events are changed.
class
NotchBar
The NotchBar
is the class that handles drawing the notch bezier path, mode, height, background color, corner radii, animation intervals, and the visibility of the view.
protocol
NotchToolbarDelegate
The NotchToolbarDelegate
protocol defines the methods that handle events related to device orientation changes and tool icons selection.