Last active
June 15, 2018 16:29
-
-
Save litoarias/f7554bf4afc42cdb33f9fab6ff68343f to your computer and use it in GitHub Desktop.
Watch Tutorial - 7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
// 1: Import Framework | |
import WatchConnectivity | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | |
if !SessionHandler.shared.isSuported() { | |
print("WCSession not supported (f.e. on iPad).") | |
} | |
return true | |
} | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment