Thank you. Adding constrains for the swiftUIView solved the problem.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: