Objective:
I created a macOS application. I have users that still use macOS 10.15 however I wanted to use SwiftUI. macOS 10.15 SwiftUI is very different from the newer version for this I created 2 targets.
Target 1:
- I created a target and selected storyboard as interface. I deleted the storyboard then I edited the info.plist.
- I created a group (folder) in the project root called "shared" and then created a swiftUI view.
- I edit the AppDelegate.swft to show the SwiftUI View
This all works as expected
Target 2:
- I created this target and selected SwiftUI as the interface.
- I then when to demoProject_App and change the view from ContentView to the View in the shared group (folder). I also added that SwiftUI view as a membership for this target. and This Target works as expected.
My Question:
I need to submit the app to the App Store. Can I submit the full project as one application so that when a users goes to download it they can only download for the target their system allows or do I have to submit them as different apps?
if #available). So you have the same base, and isolate components that are version-specific. Where it comes to using them you do version check