StateView
@available(iOS 13.0, *)
public struct StateView<Ready, Loading, Content, Failure> : View where Ready : View, Loading : View, Content : View, Failure : View
SwiftUI状态视图
-
Undocumented
Declaration
Swift
@State public var state: ViewState { get nonmutating set }
-
Undocumented
Declaration
Swift
public init( @ViewBuilder content: @escaping (Self, Any?) -> Content ) where Ready == AnyView, Loading == AnyView, Failure == AnyView
-
Undocumented
Declaration
Swift
public init( @ViewBuilder loading: @escaping (Self) -> Loading, @ViewBuilder content: @escaping (Self, Any?) -> Content, @ViewBuilder failure: @escaping (Self, Error?) -> Failure ) where Ready == AnyView
-
Undocumented
Declaration
Swift
public init( @ViewBuilder ready: @escaping (Self) -> Ready, @ViewBuilder loading: @escaping (Self) -> Loading, @ViewBuilder content: @escaping (Self, Any?) -> Content, @ViewBuilder failure: @escaping (Self, Error?) -> Failure )
-
Declaration
Swift
public var body: some View { get }