I have a SwiftUI view that I have wrapped using UIHostingController for use within UIKit.
Requirement: Within the UIKit environment, I want to get all the subviews of this SwiftUI view and determine whether the images within those subviews have finished loading.
For UIKit views, we can use view.subviews to get all the subviews and do the check.
However, for SwiftUI views, I found that the view.subviews turns out to be an empty array, making it impossible to do further checks.
So the question is How can I get the subviews of a SwiftUI view?