ActivityRings icon indicating copy to clipboard operation
ActivityRings copied to clipboard

Can I make double rings in this library?

Open pontachandazo opened this issue 6 years ago • 2 comments

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

pontachandazo avatar Jan 21 '19 10:01 pontachandazo

` //セット 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

pontachandazo avatar Jan 21 '19 10:01 pontachandazo

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.

HarshilShah avatar Sep 01 '19 08:09 HarshilShah