The mini demo as follow.
That would be normal when use ASCII character to replace emoji.
Code Block swift struct home: View { @State var 😄 = false var body: some View { // '$' is not an identifier; use backticks to escape it // Cannot find '$' in scope FooView(bar: $😄) } } struct FooView: View { @Binding var bar: Bool // ... }
That would be normal when use ASCII character to replace emoji.
An interesting experiment.
Currently property-wrapper-projection is defined as follows in the Swift book.
Seems the current Swift parser is not implemented as it should be. The difference is not so slight that can be omitted.
You should better send a bug report using Feedback Assistant to Apple or using bugs.swift.org to swift.org.
Currently property-wrapper-projection is defined as follows in the Swift book.
The emoji you have shown (U+1F604) is included in identifier-character, so $😄 should be a valid identifier.property-wrapper-projection → $ identifier-characters
Seems the current Swift parser is not implemented as it should be. The difference is not so slight that can be omitted.
You should better send a bug report using Feedback Assistant to Apple or using bugs.swift.org to swift.org.