ios – How you can check for the presence of a form in SwiftUI / XCUIApplication?


I’ve a loading indicator created by the code beneath. How can I add an identifier that may enable me to check for its presence on the web page utilizing XCUIApplication.one thing[“identifier”].isHittable or related?

    var physique: some View {
        HStack {
            Circle()
                .fill(dotColor)
                .opacity(shouldAnimate ? 1 : 0.1)
                .body(width: dotSize, peak: dotSize)
                .scaleEffect(shouldAnimate ? 1.1 : 0.9)
                .animation(easyDoesIt, worth: shouldAnimate)
            Circle()
                .fill(dotColor)
                .opacity(shouldAnimate ? 1 : 0.1)
                .body(width: dotSize, peak: dotSize)
                .scaleEffect(shouldAnimate ? 1.1 : 0.9)
                .animation(easyDoesIt.delay(0.2), worth: shouldAnimate)
            Circle()
                .fill(dotColor)
                .opacity(shouldAnimate ? 1 : 0.1)
                .body(width: dotSize, peak: dotSize)
                .scaleEffect(shouldAnimate ? 1.1 : 0.9)
                .animation(easyDoesIt.delay(0.4), worth: shouldAnimate)
            }
            .onAppear {
                self.shouldAnimate = true
            }
    }

Leave a Reply