ActivityRings
ActivityRings copied to clipboard
Can I make double rings in this library?
I want to double rings like a donut!! But I don' know the way to make this...please tell me...
` //セット 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
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.