-
Notifications
You must be signed in to change notification settings - Fork 407
Closed
Description
I'm trying to get imageview object but nothing i'm getting
extension View {
public func introspectImageView(customize: @escaping (UIImageView) -> Void) -> some View {
inject(UIKitIntrospectionView(
selector: { introspectionView in
guard let viewHost = Introspect.findViewHost(from: introspectionView) else {
return nil
}
// return Introspect.previousSibling(containing: UIImageView.self, from: viewHost)
// return Introspect.findChild(ofType: UIImageView.self, in: viewHost)
return Introspect.findHostingView(from: viewHost) as? UIImageView
},
customize: customize
))
}
}
Metadata
Metadata
Assignees
Labels
No labels