Adapting UIHostingController to changes in SwiftUI View size