Welcome to the community.
Just so that we have an idea of your Mac environment, can you tell us what year and model you have, what operating system version you have (Catalina, Big Sur or earlier) and what version of Xcode are you using?
OK, on closer inspection it looks like you have Xcode 12 and it also looks like you have created a Storyboard App.
What did you do in your storyboard in terms of configuring the objects in your ViewController?
Perhaps you can take a screenshot of your Xcode window with your Main.storyboard selected. It should look something like this I would expect.