Skip to content

Instantly share code, notes, and snippets.

View leeeboo's full-sized avatar

Albert Lee leeeboo

View GitHub Profile
@leeeboo
leeeboo / ActivityRing2.swift
Created June 24, 2021 03:46 — forked from networkextension/ActivityRing2.swift
Final code for part 2 of the article on recreating the Apple Watch activity rings in SwiftUI. add Timer base Animation
/// 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{
@leeeboo
leeeboo / Ring.swift
Created June 24, 2021 03:46 — forked from networkextension/Ring.swift
SwiftUI Ring Animation AppleWatch Workout
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)