SwiftUI in ObjectiveC Project - List works in preview, not when it is run

Solution 1:

I think this is due to constraints, try use instead following

    ...
    view.addSubview(swiftController.view)

    swiftController.view.topAnchor.constraint(equalTo: view.topAnchor).isActive = true
    swiftController.view.bottomAnchor.constraint(equalTo: view.bottomAnchor).isActive = true
    swiftController.view.leadingAnchor.constraint(equalTo: view.leadingAnchor).isActive = true
    swiftController.view.trailingAnchor.constraint(equalTo: view.trailingAnchor).isActive = true