Here is my code
@State private var show = false
...
Form {
Toggle(isOn: $show, label: { Text("Show the text?") })
if show {
Text("Hello World")
}
}
With a button that would have the action self.show.toggle() I can animate the slide with a
withAnimation{} statement but I'm not sure how to do it with a toggle.