Add details about usage in production

This commit is contained in:
Lois Di Qual 2019-11-30 17:17:00 -08:00
parent b54abf2340
commit 6688ebeb67
1 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,12 @@ For instance, when introspecting a `TextField`, it will:
**Please note that this introspection method might break in future SwiftUI releases.** Future implementations might not use the same hierarchy, or might not use UIKit elements that are being looked for. Though the library is unlikely to crash, the `.introspect()` method will not be called in those cases.
### Usage in production
`Introspect` is meant to be used in production. It does not use any private API. It only inspects the view hierarchy using publicly available methods. The library takes a defensive approach to inspecting the view hierarchy: there is no hard assumption that elements are laid out a certain way, there is no force-cast to UIKit classes, and the `introspect()` methods are simply ignored if UIKit views cannot be found.
Install
-------