I’m learning about Lists and ScrollViews in SwiftUI and one of the modifiers that is available is:
public func scrollIndicatorsFlash(trigger value: some Equatable) -> some View
Documentation
My question is, when I use this, I pass a Bool
value, not a Binding<Bool>
. How do the scroll views and lists observe that this value has changed if I’m only passing the raw value?
The Bool that I’m passing is a @State variable defined as such: @State var flashIndicators = false
. This is very similar to the example that is in the documentation for that method.