Functions
The following functions are available globally.
-
Allows TextField components to bind to optional values
@State var text: String?
TextField(“Title”, text: $text ?? “default value”)
See also swiftui-optional-binding
Declaration
Swift
func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T>