How do I toggle the presence of a button to be hidden or not? We have the non-conditional .hidden() property; but I need the conditional version.
Note: w
I hope hidden modifier gets argument later, but since then, Set the alpha instead:
hidden
@State var shouldHide = false var body: some View { Button("Button") { self.shouldHide = true } .opacity(shouldHide ? 0 : 1) }