LoaderUI icon indicating copy to clipboard operation
LoaderUI copied to clipboard

Style 32 on swift ui

Open navyseai opened this issue 3 years ago • 3 comments

I was wondering if it was possible to add the style 32 from NVActivityIndicator to swift ui its similar to the BallClipRotate but without the pulse

navyseai avatar Mar 26 '21 13:03 navyseai

I'd like to work on this issue.

Oktosha avatar Jul 09 '21 08:07 Oktosha

I'd love to use #32 too

dev-pitcher avatar Jul 24 '21 13:07 dev-pitcher

Okay, so I tried to implement this animation. It's more complicated than just BallClipRotate without the pulse =/ The problem is that it features simultaneous animations with different timing curves (rotation and the changes in the line length) and I couldn't figure out how to make it work in pure SwiftUI :(

So I tried to adapt the original animation with UIViewRepresentable and here is the repo with the result Oktosha/CircleStrokeSpin. This isn't a perfect solution because foregroundColor modifier is not supported but it kinda works and it's the best I could do ¯_(ツ)_/¯

Oktosha avatar Sep 20 '21 19:09 Oktosha