You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using ViewInspector version 0.9.1 (tested on 0.9.5 and still same issue) in my tests, I would be able to reference views with the code below.
let view = MyGarageAccountSettingsDeleteView()
let navigationView = try view.inspect()
let scrollView = try navigationView.scrollView(0)
However, once I add an enviromentObject into the view, it does not allow me to reference the scrollView. I need to change to search the entire view for type scollView.
I am new to ViewInspector, however unless I am missing something I think this is a true issue with regards to enviromentObjects.
let view = MyGarageAccountSettingsDeleteView().environmentObject(myGarageSheet)
let navigationView = try view.inspect()
let scrollView = try navigationView.findAll(ViewType.ScrollView.self).first
The text was updated successfully, but these errors were encountered:
Hey, could you share a minimal code of MyGarageAccountSettingsDeleteView view that reproduces the issue? I've tried with the following view and test works fine:
ViewInspector 0.9.1
Xcode 14.2
Swift 5.2
Using ViewInspector version 0.9.1 (tested on 0.9.5 and still same issue) in my tests, I would be able to reference views with the code below.
However, once I add an enviromentObject into the view, it does not allow me to reference the scrollView. I need to change to search the entire view for type scollView.
I am new to ViewInspector, however unless I am missing something I think this is a true issue with regards to enviromentObjects.
The text was updated successfully, but these errors were encountered: