Enumerations

The following enumerations are available globally.

Promise

  • 约定错误

    See more

    Declaration

    Swift

    public enum PromiseError : Int, Swift.Error, CustomNSError

TabBarItemPositioning

  • 对原生的UITabBarItemPositioning进行扩展,通过UITabBarItemPositioning设置时,系统会自动添加insets,这使得添加背景样式的需求变得不可能实现。TabBarItemPositioning完全支持原有的item Position 类型,除此之外还支持完全fill模式。

    • automatic: UITabBarItemPositioning.automatic
    • fill: UITabBarItemPositioning.fill
    • centered: UITabBarItemPositioning.centered
    • fillExcludeSeparator: 完全fill模式,布局不覆盖tabBar顶部分割线
    • fillIncludeSeparator: 完全fill模式,布局覆盖tabBar顶部分割线
    See more

    Declaration

    Swift

    public enum TabBarItemPositioning : Int, Sendable

TabBarItemContentMode

AttributedLabel

BadgeView

  • 自带提醒灯样式

    See more

    Declaration

    Swift

    public enum BadgeStyle : Int, Sendable

BannerView

CollectionViewWaterfallLayout

ScanView

ToolbarView

ToolbarTitleView

  • 自定义titleView布局方式,默认水平布局

    See more

    Declaration

    Swift

    public enum ToolbarTitleViewStyle : Int, Sendable

AnimatedTransition

AlertController

AlertAction

ImageDownloader

ImagePreviewView

ImagePreviewController

CollectionViewPagingLayout

PullRefreshView

InfiniteScrollView

HTTPRequest

RequestError

Asset

  • 资源类型枚举

    See more

    Declaration

    Swift

    public enum AssetType : UInt, Sendable
  • 资源子类型枚举

    See more

    Declaration

    Swift

    public enum AssetSubType : UInt, Sendable
  • 资源下载状态枚举

    See more

    Declaration

    Swift

    public enum AssetDownloadStatus : UInt, Sendable

AssetGroup

  • 相册展示内容的类型

    See more

    Declaration

    Swift

    public enum AlbumContentType : UInt, Sendable
  • 相册展示内容按日期排序的方式

    See more

    Declaration

    Swift

    @objc
    public enum AlbumSortType : UInt, Sendable

AssetManager

AssetSessionExporterError

AuthorizeStatus

VideoPlayerPlaybackState

VideoPlayerBufferingState

HeaderFooterViewType

JSONError

  • Undocumented

    See more

    Declaration

    Swift

    public enum JSONError : Int, Swift.Error
    extension JSONError: CustomNSError

JSONType

  • Undocumented

    See more

    Declaration

    Swift

    public enum JSONType : Int, Sendable

Index

  • Undocumented

    See more

    Declaration

    Swift

    public enum Index<T> : Comparable

Subscript

NSNumber: Comparable

ViewState

  • 视图状态枚举,兼容UIKit和SwiftUI

    See more

    Declaration

    Swift

    public enum ViewState : Equatable

ViewControllerLifecycleState

  • 视图控制器常用生命周期状态枚举

    注意:didDeinit时请勿使用runtime关联属性(可能已被释放),请使用object参数

    See more

    Declaration

    Swift

    public enum ViewControllerLifecycleState : Int, Sendable

PlayerCacheAction

VersionStatus

WebSocket

WebSocketServer

Security

Transport

Framer

functions for simpler array buffer reading and writing

CollectionViewAlignLayout

BarrageRenderView

PagingListContainerView

  • 列表容器视图的类型

    • ScrollView: UIScrollView。优势:没有其他副作用。劣势:实时的视图内存占用相对大一点,因为所有加载之后的列表视图都在视图层级里面。
    • CollectionView: 使用UICollectionView。优势:因为列表被添加到cell上,实时的视图内存占用更少,适合内存要求特别高的场景。劣势:因为cell重用机制的问题,导致列表被移除屏幕外之后,会被放入缓存区,而不存在于视图层级中。如果刚好你的列表使用了下拉刷新视图,在快速切换过程中,就会导致下拉刷新回调不成功的问题。一句话概括:使用CollectionView的时候,就不要让列表使用下拉刷新加载。
    See more

    Declaration

    Swift

    public enum PagingListContainerType : Int, Sendable

PasscodeView

PasscodeCellProperty

SkeletonAnimation

Refresh

PlatformVersion

PlatformViewVersion