:watch: An experimental framework for running Apple Watch apps on iOS. Finalist at HackGT 2016 in Atlanta, GA.
https://github.com/calda/WatchKit-for-iOS.git
You can add WatchKit for iOS to your Xcode project by using Carthage. Just add github "calda/WatchKit-for-iOS" to your cartfile.
import WatchKit to import WatchKit_iOS. You shouldn't have to make any other changes.
WatchKit_iOS and spinning up a new WatchContainerViewController:
let watchViewController = WatchContainerViewController.create(
withInterfaceFileNamed: "Watch Interface", // the name of the .xml file that matches the WatchKit .storyboard
inNamespace: "Emoji Sudoku") // the name of the iOS app target that includes the imported WatchKit source code
watchViewController.modalTransitionStyle = .crossDissolve
watchViewController.modalPresentationStyle = .overFullScreen
self.present(watchViewController, animated: true, completion: nil)
WKInterfaceController, WKInterfaceGroup, WKInterfaceLabel, and WKInterfaceButton. It also supports most important storyboard components including colors, fonts, segues, IBOutlets, IBActions, and force touch Menu Items.