-
Notifications
You must be signed in to change notification settings - Fork 3
NotchBar
Class
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.
A variable that allows you to choose between .statusBar
& .noStatusBar
modes. Default is .statusBar
.
.statusBar
mode sets the width of the NotchBar view to the exact same width as the iPhone X notch.
.noStatusBar
mode sets the width of the NotchBar view 30% wider than the width of the iPhone X notch.
A variable that allows you to configure the height of your NotchBar
. Default is 250.
A variable that allows you to configure the background color of your NotchBar
. Default is .black
.
A variable that allows you to configure the corner radii of your NotchBar
. Default is 35.
A variable that allows you to configure the visibility of your NotchBar
. Default is false
.
A variable that allows you to configure the animations time interval preformed by the NotchBar
. Default is 0.3.
This method allows you to reconfigure the NotchBar
with a new or the same orientation.