This file contains 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
import SwiftUI | |
struct ContentView: View { | |
@State private var showRedStroke = false | |
@State private var showGreenStroke = false | |
@State private var showBlueStroke = false | |
var body: some View | |
{ | |
ZStack { | |
RadialGradient (gradient: Gradient (colors: [Color.black, Color.black]), | |
center: .center, startRadius: 5, endRadius: 500) |
This file contains 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
/// Nested activity rings | |
struct ActivityRings: View { | |
var ringGap: CGFloat = 2 | |
@State var progressMove: Double | |
@State var progressExercise: Double | |
@State var progressStand: Double | |
var body: some View { | |
ZStack{ |