Skip to content
/ SSMP Public
forked from EthanLipnik/SSMP

Second Screen Mode Protocol allows for any iOS device to become a desktop

License

Notifications You must be signed in to change notification settings

carabina/SSMP

 
 

Repository files navigation

SSMP

Second Screen Mode Protocol for iOS

This is a Pre-release

Swift PodVersion Carthage Compatible Platform: iOS

Example project

What is SSMP?

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).

What does it do?

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.

Usage

Setup

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()

Options

For SSMPApp:

verboseLogging: Bool
allowedClickTypes: [clickType]
clickType = .tap, .hardpress
extensionType: screenType
screenType = .default, .custom

To Start

SSMPApp.default.start()

About

Second Screen Mode Protocol allows for any iOS device to become a desktop

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 90.0%
  • Ruby 7.7%
  • Objective-C 2.3%