the ContentView.swift alone is over three hundred lines, so that seemed a bit much to paste in, which is why I provided the link to the full project on github.
When I said "underneath body" I meant how, in ContentView.swift, you have the basic structure of the file:
import SwiftUI
struct ContentView: View {
var body: some View {
<most code goes here>
}
}
#Preview {
ContentView()
}
the current issue i'm seeing happens when I have @State var buttonBlank: Bool = true after the ContentView: View line but before the var body: some View line.
If I put it after var body: some View, then I don't get the weird 4 cycle-blank other buttons weirdness, but buttonBlank never updates.
sorry if that bit was less than clear.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: