remove geometryreader

This commit is contained in:
neon443
2025-08-28 21:01:39 +01:00
parent 18046d1208
commit dc01156d9c
2 changed files with 59 additions and 58 deletions

View File

@@ -11,10 +11,9 @@ struct ShaderTestingView: View {
@State private var start = Date.now @State private var start = Date.now
var body: some View { var body: some View {
GeometryReader { geo in
TimelineView(.animation) { tl in TimelineView(.animation) { tl in
ZStack {
let time = start.distance(to: tl.date) let time = start.distance(to: tl.date)
ZStack {
VStack { VStack {
HStack { HStack {
Image(systemName: "figure.walk.circle") Image(systemName: "figure.walk.circle")
@@ -78,7 +77,6 @@ struct ShaderTestingView: View {
} }
} }
} }
}
} }
#Preview { #Preview {

View File

@@ -54,9 +54,12 @@ struct AboutView: View {
NavigationLink { NavigationLink {
ShaderTestingView() ShaderTestingView()
} label: { } label: {
VStack {
Text("Shader Playground") Text("Shader Playground")
.bold() .bold()
Text("This is a collection of all the shaders I made while learning!") Text("This is a collection of all the shaders I made while learning!")
.font(.caption2)
}
} }
} }
.transition(.scale) .transition(.scale)