Created
December 6, 2019 22:39
-
-
Save Arrlindii/dfc2540323e0faf4cb541817fd2a9e74 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var body: some View { | |
| let spectrum = Gradient(colors: [ Color.mintGreenColor, Color.darkMintColor]) | |
| let conic = AngularGradient(gradient: spectrum, center: .center, angle: .radians(getEndAngle().radians)) | |
| let ring = RingShape(startAngle: getStartAngle(), endAngle: getEndAngle(), ringWidth: ringWidth).fill(conic) | |
| let ringHead = RingHead(endAngle: getEndAngle(), ringWidth: ringWidth).fill(Color.darkMintColor) | |
| return ring.overlay(ringHead) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment