Watch-Connectivity-Sample is a sample SwiftUI code for Watch-Connectivity explanation.
https://zenn.dev/naoya_maeda/articles/d63504a860c36c
-
Download or Clone this project and open in Xcode.
-
Build on your actual device or simulator.
Sends a message immediately to the paired and active device and optionally handles a response.
Sends a dictionary of values that a paired and active device can use to synchronize its state.
Sends the specified data dictionary to the counterpart.
Since transferUserInfo(_:) does not work in the simulator, the operation video is omitted.
Sends the specified file and optional dictionary to the counterpart.
Ver. | 1.0 |
---|---|
Xcode | 14.3.1 |
Swift | 5.8.1 |
iOS | 15.0 - |
watchOS | 8.0 - |