SwiftUI で作成したアプリは、iOS 13 未満の iOS でも動作しますか?
ベストアンサー1
View
Xcode 11 で確認したところ、SwiftUI の実装に見られるように、下位互換性がないことが確認できました。
/// A piece of user interface.
///
/// You create custom views by declaring types that conform to the `View`
/// protocol. Implement the required `body` property to provide the content
/// and behavior for your custom view.
@available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
public protocol View : _View {
/// The type of view representing the body of this view.
///
/// When you create a custom view, Swift infers this type from your
/// implementation of the required `body` property.
associatedtype Body : View
/// Declares the content and behavior of this view.
var body: Self.Body { get }
}