Button Not Showing in IOS

Completely new to Swift and Xcode. Was trying to adapt a tutorial to what I want to do. Using the code below, when I run it on Mac it works. The button shows and works. On iOS, the button does not appear yet it works. Any ideas?

I tested on iOS simulator and get the button visible:

What else do you expect ?

How do you see it works (it does nothing apparent) but just react to tap.

What is your Xcode version ?

I also tested on iPhone device (iOS 16.4.1) with Xcode 14.2. It works as well.

Note: when you post code, don't post screenshot. Post the code directly and format it with code formatter tool.

Button Not Showing in IOS
 
 
Q