It is a bit off topic! but how do we make views applicable to different hardwares with SwiftUI? Such as watch, macbook etc. Any tutorial explains this topic in Essential Developer?
Hello! SwiftUI already works on multi-platforms. So as long you don't use any platform-specific methods, your code will compile and run on any supported platform. For platform-specific features, you will need customizations points for each platform (e.g., with separate views or compiler directives)
Thanks for posting this
It is a bit off topic! but how do we make views applicable to different hardwares with SwiftUI? Such as watch, macbook etc. Any tutorial explains this topic in Essential Developer?
Hello! SwiftUI already works on multi-platforms. So as long you don't use any platform-specific methods, your code will compile and run on any supported platform. For platform-specific features, you will need customizations points for each platform (e.g., with separate views or compiler directives)