romansorochak / ParallaxHeader

Simple way to add parallax header to UIScrollView/UITableView written in Swift.
MIT License
1.03k stars 131 forks source link

The header view children is not found on XCUITests #44

Open slzrafael opened 5 years ago

slzrafael commented 5 years ago

if a do this

let header = TreeLabelsHeaderView()
header.name.text = "Rafael"
header.age.text = "29 years"
header.country.text = "Brasil"

tableView.parallaxHeader.view = header
tableView.parallaxHeader.height = 400
tableView.parallaxHeader.minimumHeight = 0
tableView.parallaxHeader.mode = .topFill

// on UITest

let app = XCUIApplication()
XCAssertTrue(app.staticTexts["Rafael"].exists)
XCAssertTrue(app.staticTexts["29 years"].exists)
XCAssertTrue(app.staticTexts["Brasil"].exists)

this test broke and all elements of TreeLabelsHeaderView is not founded on acessibility tree.