I agree with most of what szymczyk answered above.
Here are a few little tips I've learned while building a multi-platform app for several months.
If you used UIKit functions, you need to customize them for AppKit. (UIImage, UIApplication, UIColor)
Since fullScreenCover is not supported on macOS, it is best to use sheet if possible.
When using lists on macOS, it looks better to use .formStyle(.grouped).
Depending on the version of macOS, if there is a problem with the list in the Form not scrolling, it must be wrapped in a ScrollView. No problem in the latest version
You need to create a routine that corresponds to iOS' swipe action.
You will need to modify routines related to keyboard input. (keyboardType, keyDown)
If you have already created a UI for iPad landscape mode, I think you will be able to easily create an app for macOS. Even if the UI is created with the same code, testing must be done separately. In particular, there were many small bugs in NavigationSplitView on the iPad, and Apple has neglected them for a long time.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: