Giter Site home page Giter Site logo

milanistadev / watchconnectivitysampleforswiftui2 Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 28 KB

This is a sample app of the function(Watch Connectivity) to transfer data from Watch App to iPhone App in the background.

Swift 100.00%
swiftui ios swift swiftui-example watchos watchconnectivity

watchconnectivitysampleforswiftui2's Introduction

WatchConnectivitySampleForSwiftUI2

This is a sample app of the function(Watch Connectivity)
to transfer data from Watch App to iPhone App in the background.
This sample is used SwiftUI.

The following repository is a similar sample.
This is a sample app that both apps use while active.
https://github.com/MilanistaDev/WatchConnectivitySampleForSwiftUI

Article

https://qiita.com/MilanistaDev/items/0ce079b255034be84472

Environment

  • Xcode 13 and later
  • iOS 15 and later
  • watchOS 8.0 and later
  • ↑Need pairing
  • SwiftUI 3

Always test Watch Connectivity data transfers on paired devices. The Simulator app doesn’t support the transferUserInfo(_:) method.

Only actual device.
iOS 14 and watchOS 7 is supported, too.
(Please modify NavigationView code.)

Point of implementation

App image

スクリーンショット 2022-02-14 17 14 56

Movie

wc_sample_fixed.mov

Contact

Please feel free to contact us if you find a bug or have any feedback.
Suggestions for adding functions and code corrections are also welcome.

let name = "Takuya Aso"
let email = "milanista224" + "@" + "icloud.com"
let profession = "iOS Engineer"
let location = "Tokyo"

watchconnectivitysampleforswiftui2's People

Contributors

milanistadev avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.