Hi everybody, I created a SwiftUI package on GitHub, but I'm getting an issue with this code:
struct Example: View {
@State var name = ""
var body: some View {
TextField("name", text: $name)
.keyboardType(.emailAddress)
}
}
When I'm typing the property keyboardType
I get the following message:
This property is defined on CGEventSource, and may not be available in this context
I'm not sure if I'm missing something when creating a GitHub Swift package, can you help me with this issue?