Xcode sample single page app not compile after select older target iOS

I just downloaded xcode ( 2020/07/28 ) and it allows me to create a sample single page app for iOS. It should be fine as my app will be fairly simple using simple GUI, iphone camera to capture barcodes, and some http/https calls to a remote server. However when i select my desired minimum iOS ( version 12 ) then the sample app no longer compiles. I guess this is to be expected. But i need to target the majority of iphones out there and the latest iOS 13 apparently only runs on a minority of devices. So is it possible to get the xcode sample single page app that will work on iOS 12 or will it become possible to rework the iOS 13 app to work on iOS 12 as i begin to learn how swift works ? thanks in advance !
Xcode sample single page app not compile after select older target iOS
 
 
Q