'ActivityRing (for AppleWatch) and distance (SWIFTUI)
I'm developing an Apple Watch application which simulates a running match between the user and a virtual one. The game is very simple and updates the distance of the gamers in real time until one of them reaches the distance proposed (in meters). It works. The user can choose a daily goal: how many meters to walk each day (from 100 to 1000). I implemented the Activity ring about the goal but how I can update the variable progress based on the meters traveled so far? And how I can set the activity each day (24 h)?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
