SwiftUI iOS 只能用于其他 Apple 平台吗?
Is SwiftUI iOS only or can it be used for other Apple platforms as well?
我看过的所有 Swift UI 教程都是基于 iOS 的。是 SwiftUI iOS 还是可以用于其他 Apple 硬件平台,如 macOS、watchOS、tvOS、and/or iPadOS?
SwiftUI 适用于所有 Apple 平台。来自官方SwiftUI homepage:
SwiftUI is an innovative, exceptionally simple way to build user interfaces across all Apple platforms with the power of Swift. Build user interfaces for any Apple device using just one set of tools and APIs.
我看过的所有 Swift UI 教程都是基于 iOS 的。是 SwiftUI iOS 还是可以用于其他 Apple 硬件平台,如 macOS、watchOS、tvOS、and/or iPadOS?
SwiftUI 适用于所有 Apple 平台。来自官方SwiftUI homepage:
SwiftUI is an innovative, exceptionally simple way to build user interfaces across all Apple platforms with the power of Swift. Build user interfaces for any Apple device using just one set of tools and APIs.