Structures
The following structures are available globally.
-
Can be used for registering Mocked data, returned by the
See moreMockingURLProtocol.Declaration
Swift
public struct NetworkMocker -
A Mock which can be used for mocking data requests with the
See moreMockerby callingMocker.register(...).Declaration
Swift
public struct NetworkMock : Equatable -
导航栏配置,兼容AnyView和UIKit对象
See moreDeclaration
Swift
@available(iOS 13.0, *) public struct NavigationBarConfiguration
-
不可见视图,当某个场景EmptyView不生效时可使用InvisibleView替代,比如EmptyView不触发onAppear
See moreDeclaration
Swift
@available(iOS 13.0, *) public struct InvisibleView : View
-
SwiftUI状态视图
See moreDeclaration
Swift
@available(iOS 13.0, *) public struct StateView<Ready, Loading, Content, Failure> : View where Ready : View, Loading : View, Content : View, Failure : View
-
This is the same logic as IntrospectionView but for view controllers. Please see details above.
See moreDeclaration
Swift
@available(iOS 13.0, tvOS 13.0, macOS 10.15.0, *) public struct UIKitIntrospectionViewController<TargetViewControllerType> : UIViewControllerRepresentable where TargetViewControllerType : UIViewController
-
Introspection View that is injected into the UIKit hierarchy alongside the target view. After
See moreupdateUIViewis called, it callsselectorto find the target view, thencustomizewhen the target view is found.Declaration
Swift
@available(iOS 13.0, tvOS 13.0, macOS 10.15.0, *) public struct UIKitIntrospectionView<TargetViewType> : UIViewRepresentable where TargetViewType : UIView
-
通用UIView包装器
See moreDeclaration
Swift
@available(iOS 13.0, *) public struct ViewWrapper<T> : UIViewRepresentable where T : UIView
-
通用UIViewController包装器
See moreDeclaration
Swift
@available(iOS 13.0, *) public struct ViewControllerWrapper<T> : UIViewControllerRepresentable where T : UIViewController
-
图片视图,支持网络图片和动图
See moreDeclaration
Swift
@available(iOS 13.0, *) public struct ImageView : UIViewRepresentable
-
加载插件视图包装器
See moreDeclaration
Swift
@available(iOS 13.0, *) public struct LoadingPluginView : UIViewRepresentable
-
进度插件视图包装器
See moreDeclaration
Swift
@available(iOS 13.0, *) public struct ProgressPluginView : UIViewRepresentable
-
线条形状,用于分割线、虚线等。自定义路径形状:Path { (path) in … }
See moreDeclaration
Swift
@available(iOS 13.0, *) public struct LineShape : Shape
-
不规则圆角形状
See moreDeclaration
Swift
@available(iOS 13.0, *) public struct RoundedCornerShape : Shape
-
视图移除性修改器
See moreDeclaration
Swift
@available(iOS 13.0, *) public struct RemovableModifier : ViewModifier
Structures Reference