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

Can I make double rings in this library? #14

Open
pontachandazo opened this issue Jan 21, 2019 · 2 comments
Open

Can I make double rings in this library? #14

pontachandazo opened this issue Jan 21, 2019 · 2 comments

Comments

@pontachandazo
Copy link

I want to double rings like a donut!!
But I don' know the way to make this...please tell me...

@pontachandazo
Copy link
Author

` //セット
sceneMapping[scene] = ActivityRingScene(size: CGSize(width: 150, height: 150))
sceneMapping[sleepEfficiencyScene] = ActivityRingScene(size: CGSize(width: 145, height: 145))

    for (interfaceScene, ringScene) in sceneMapping {
        interfaceScene.presentScene(ringScene)
        ringScene.animateProgress(to: 0.75, withDuration: 2.0)
        ringScene.ringWidth = 5
    }
    `

↑↑Now my code

@HarshilShah
Copy link
Owner

Hey there, thank you for opening an issue, and sorry for the late response.

I’m not sure what you mean by like a donut, but your snipper seems to be about right. One issue might be that you need to inset the sleepEfficiencyRing a bit more since it has a ringWidth of 5 but is inset by only 2.5 points on all sides.

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

2 participants