As seen in the handling user input tutorial.
struct LandmarkList: View {
@State var showFavoritesOnly = true
var body: some View {
NavigationView {
List {
Toggle(isOn: $showFavoritesOnly) {
Text("Favorites only")
}
...
What is the showFavoritesOnly / $showFavoritesOnly syntax ?
Is it something unique to Binding<T>
or can we use it in our own code ?