I need to get a button from the SwiftUI view that is wrapped in UIHostingController. In UIKit we simply could check the type in this way:
UIHostingController
for (id