by happytoexplain · 2y ago · 0 comments
func foo(string: Optional<String>) { . . . }
let string: String = "just a string"
foo(string: string)Edit: 'Binding' uses the PropertyWrapper attribute, which is similar in that it allows treating a wrapper type like the type it wraps. This is a language feature that is available to users. I'd be interested to know if Optional is the only "magical" type.