Post

Replies

Boosts

Views

Activity

SwiftUI not support non-ASCII character as identifier in binding data.
The mini demo as follow. 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.
3
0
733
Oct ’20