Second Screen Mode Protocol for iOS
This is a Pre-release
SSM or Second Screen Mode Protocol is an open source framework for iOS writen in Swift that makes it easy for apps to take advantage of a second display (through a cable or AirPlay).
When your device is connected to a display, the device becomes a mouse and keyboard. The display has the main view. It adds a mouse pointer which does all the normal touch inputs.
In your AppDelegate, set the view controller the second display should have:
SSMPApp.default.secondaryViewController = MyAppMainViewController()
For extension type, custom. This is the main display on the device:
SSMPApp.default.primaryViewController = MyOtherViewController()
For SSMPApp:
verboseLogging: Bool
allowedClickTypes: [clickType]
clickType = .tap, .hardpress
extensionType: screenType
screenType = .default, .custom
SSMPApp.default.start()