SecondScreen
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Installation
SecondScreen is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SecondScreen"
Usage
Pretty easy to use instantiate SecondScreen
and add delegates:
import UIKit
import SecondScreen
class ViewController: UIViewController, SecondScreenDelegate {
var secondScreen = SecondScreen()
override func viewDidLoad() {
super.viewDidLoad()
secondScreen.delegate = self
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
deinit {}
func externalVideoConnected(externalWindow: UIWindow) {
print("Ext video connect")
// externalWindow.rootViewController =
}
func externalVideoDisconnected() {
print("Ext video disconnected")
}
}
Author
Matteo Crippa, @ghego20
License
SecondScreen is available under the MIT license. See the LICENSE file for more info.