Skip to content

Instantly share code, notes, and snippets.

@Lofionic
Lofionic / ContentView.swift
Last active October 22, 2024 23:34
Shader fun
import SwiftUI
struct ContentView: View {
@State private var start = Date.now
var body: some View {
VStack {
TimelineView(.animation) { timeline in
let time = start.distance(to: timeline.date)
Rectangle()