( view: any, predicate: (view: any) => boolean, result: any[] = [], )
| 1621 | } |
| 1622 | |
| 1623 | function collectSubviews( |
| 1624 | view: any, |
| 1625 | predicate: (view: any) => boolean, |
| 1626 | result: any[] = [], |
| 1627 | ): any[] { |
| 1628 | for (const child of nsArray(read(view, "subviews"))) { |
| 1629 | if (predicate(child)) { |
| 1630 | result.push(child); |
| 1631 | } |
| 1632 | collectSubviews(child, predicate, result); |
| 1633 | } |
| 1634 | return result; |
| 1635 | } |
| 1636 | |
| 1637 | function tabBarControls(tabBar: any): any[] { |
| 1638 | const controls = collectSubviews( |
no test coverage detected