Skip to content
Ahmed Fathi Bekhit edited this page Nov 9, 2017 · 8 revisions

Framework

NotchToolkit

Enabling developers to use the iPhone X notch space in creative ways.


Overview

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.

NotchImageView PreviewNotchToolbar Preview

Topics

Classes

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.

Protocols

protocol NotchToolbarDelegate

The NotchToolbarDelegate protocol defines the methods that handle events related to device orientation changes and tool icons selection.

Reference

NotchToolkit Enumerations

NotchToolkit Docs

Classes

Protocols

Enumerations

enums

Clone this wiki locally