I'm developing my app with SwiftUI, but some elements are still from the UIKit world, e.g. one UITextField with special behavior, that's why I use a UIViewRepresentable
where the makeUIView
methods returns a UITextField
.
When I try to enter text via UI test, I don't succeed in querying the textfield; even app.textFields
doesn't return anything.
Is this because of using UIViewRepresentable
, am I missing something?