Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inaccurate duration in center #28

Open
otoury opened this issue Sep 30, 2019 · 0 comments
Open

Inaccurate duration in center #28

otoury opened this issue Sep 30, 2019 · 0 comments

Comments

@otoury
Copy link

otoury commented Sep 30, 2019

Sometimes you get inaccurate duration in the center of the clock. 3:20 to 7:20 would produce "2hr55min".
This can be fixed by changing the following line to include round()

func updateWatchFaceTitle() {
...
var fiveMinIcrements = Int(round(((tailAngle - headAngle) / twoPi) * 12 /*hrs*/ * 12))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant