Last active
June 19, 2018 09:59
-
-
Save litoarias/5c5cbab12621d25cc44ade026ad47af7 to your computer and use it in GitHub Desktop.
Watch Tutorial 9
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
// Receive messages from iPhone | |
func session(_ session: WCSession, didReceiveMessage message: [String : Any]) { | |
// 1: We launch a sound and a vibration | |
WKInterfaceDevice.current().play(.notification) | |
// 2: Get message and append to list | |
let msg = message["msg"]! | |
self.items.append("\(msg)") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment