Structures

The following structures are available globally.

  • Can be used for registering Mocked data, returned by the MockingURLProtocol.

    See more

    Declaration

    Swift

    public struct NetworkMocker
  • A Mock which can be used for mocking data requests with the Mocker by calling Mocker.register(...).

    See more

    Declaration

    Swift

    public struct NetworkMock : Equatable
  • 导航栏配置,兼容AnyView和UIKit对象

    See more

    Declaration

    Swift

    @available(iOS 13.0, *)
    public struct NavigationBarConfiguration

InvisibleView

  • 不可见视图,当某个场景EmptyView不生效时可使用InvisibleView替代,比如EmptyView不触发onAppear

    See more

    Declaration

    Swift

    @available(iOS 13.0, *)
    public struct InvisibleView : View

StateView

  • SwiftUI状态视图

    See more

    Declaration

    Swift

    @available(iOS 13.0, *)
    public struct StateView<Ready, Loading, Content, Failure> : View where Ready : View, Loading : View, Content : View, Failure : View

UIKitIntrospectionViewController

  • This is the same logic as IntrospectionView but for view controllers. Please see details above.

    See more

    Declaration

    Swift

    @available(iOS 13.0, tvOS 13.0, macOS 10.15.0, *)
    public struct UIKitIntrospectionViewController<TargetViewControllerType> : UIViewControllerRepresentable where TargetViewControllerType : UIViewController

UIKitIntrospectionView

  • Introspection View that is injected into the UIKit hierarchy alongside the target view. After updateUIView is called, it calls selector to find the target view, then customize when the target view is found.

    See more

    Declaration

    Swift

    @available(iOS 13.0, tvOS 13.0, macOS 10.15.0, *)
    public struct UIKitIntrospectionView<TargetViewType> : UIViewRepresentable where TargetViewType : UIView

ViewWrapper

  • 通用UIView包装器

    See more

    Declaration

    Swift

    @available(iOS 13.0, *)
    public struct ViewWrapper<T> : UIViewRepresentable where T : UIView

ViewControllerWrapper

  • 通用UIViewController包装器

    See more

    Declaration

    Swift

    @available(iOS 13.0, *)
    public struct ViewControllerWrapper<T> : UIViewControllerRepresentable where T : UIViewController

ImageView

  • 图片视图,支持网络图片和动图

    See more

    Declaration

    Swift

    @available(iOS 13.0, *)
    public struct ImageView : UIViewRepresentable

LoadingPluginView

  • 加载插件视图包装器

    See more

    Declaration

    Swift

    @available(iOS 13.0, *)
    public struct LoadingPluginView : UIViewRepresentable

ProgressPluginView

  • 进度插件视图包装器

    See more

    Declaration

    Swift

    @available(iOS 13.0, *)
    public struct ProgressPluginView : UIViewRepresentable

EmptyPluginView

  • 空界面插件视图包装器

    See more

    Declaration

    Swift

    @available(iOS 13.0, *)
    public struct EmptyPluginView : UIViewRepresentable
  • 网络图片视图,仅支持静态图

    See more

    Declaration

    Swift

    @available(iOS 13.0, *)
    public struct WebImageView : View

LineShape

  • 线条形状,用于分割线、虚线等。自定义路径形状:Path { (path) in … }

    See more

    Declaration

    Swift

    @available(iOS 13.0, *)
    public struct LineShape : Shape

RoundedCornerShape

  • 不规则圆角形状

    See more

    Declaration

    Swift

    @available(iOS 13.0, *)
    public struct RoundedCornerShape : Shape

RemovableModifier

  • 视图移除性修改器

    See more

    Declaration

    Swift

    @available(iOS 13.0, *)
    public struct RemovableModifier : ViewModifier