Is there a reason you are using a xib file and an IBOutlet to show a single label?
It would be easier to create the label in code inside the makeUIView function.
If you have a more complex view that requires a xib file or storyboard, use UIViewControllerRepresentable to create a view controller instead of using UIViewRepresentable for a single UI view.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: