struct ContentView: View {
var body: some View {
Button {
} label: {
Text("Close")
}
.accessibilityIdentifier("button")
}
}
KIF doesn't seem to be able to locate the button (or any other view types) with the accessibility identifier.
I followed the steps in README, not sure what is missing or if it's UIAccessibilityElement *element = [self accessibilityElementWithLabel:label value:value traits:traits fromRootView:fromView error:error]; not being able to pick up SwiftUI view?
My SwiftUI view is a simple view
KIF doesn't seem to be able to locate the button (or any other view types) with the accessibility identifier.
I followed the steps in README, not sure what is missing or if it's
UIAccessibilityElement *element = [self accessibilityElementWithLabel:label value:value traits:traits fromRootView:fromView error:error];
not being able to pick up SwiftUI view?Full source code