This commit is contained in:
David Roman 2023-06-02 10:24:16 +01:00 committed by GitHub
parent f17535beda
commit 56a6238ec7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -158,6 +158,8 @@ Implement your own selector
In case SwiftUIIntrospect doesn't support the SwiftUI element that you're looking for, you can implement your own selector. For example, to introspect a `TextField`:
```swift
@_spi(Internals) import SwiftUIIntrospect
public struct TextFieldType: IntrospectableViewType {}
extension IntrospectableViewType where Self == TextFieldType {