Skip to content

Instantly share code, notes, and snippets.

View thatswiftguy's full-sized avatar
🎯
Focusing

Yasir thatswiftguy

🎯
Focusing
View GitHub Profile
@thatswiftguy
thatswiftguy / code.swift
Created July 31, 2024 10:25
Custom Made Progress View
struct ProgressLine: Identifiable {
var id: String = UUID().uuidString
var length: CGFloat
var gradient: LinearGradient
}
struct ContentView: View {
var body: some View {
VStack {
CircularRectanglesView()
@thatswiftguy
thatswiftguy / spaceTravelingAnimation.swift
Created October 13, 2024 12:21
A space traveling animation with swiftUI.
struct StarFieldView: View {
@State private var stars: [Star] = []
var body: some View {
GeometryReader { geometry in
ZStack {
ForEach(stars) { star in
Circle()
.fill(star.color)
.frame(width: star.size, height: star.size)