Enumerations
The following enumerations are available globally.
-
约定错误
See moreDeclaration
Swift
public enum PromiseError : Int, Swift.Error, CustomNSError
-
对原生的UITabBarItemPositioning进行扩展,通过UITabBarItemPositioning设置时,系统会自动添加insets,这使得添加背景样式的需求变得不可能实现。TabBarItemPositioning完全支持原有的item Position 类型,除此之外还支持完全fill模式。
- automatic: UITabBarItemPositioning.automatic
- fill: UITabBarItemPositioning.fill
- centered: UITabBarItemPositioning.centered
- fillExcludeSeparator: 完全fill模式,布局不覆盖tabBar顶部分割线
- fillIncludeSeparator: 完全fill模式,布局覆盖tabBar顶部分割线
Declaration
Swift
public enum TabBarItemPositioning : Int, Sendable
-
Undocumented
See moreDeclaration
Swift
public enum TabBarItemContentMode : Int, Sendable
-
Undocumented
See moreDeclaration
Swift
public enum AttributedLabelAlignment : Int, Sendable
-
自带提醒灯样式
See moreDeclaration
Swift
public enum BadgeStyle : Int, Sendable
-
Undocumented
See moreDeclaration
Swift
public enum CollectionViewWaterfallLayoutItemRenderDirection : Int, Sendable
-
扫码边角位置枚举
See moreDeclaration
Swift
public enum ScanCornerLoaction : Int, Sendable
-
Undocumented
See moreDeclaration
Swift
public enum SegmentedControlSelectionStyle : Int, Sendable
-
Undocumented
See moreDeclaration
Swift
public enum SegmentedControlSelectionIndicatorLocation : Int, Sendable
-
Undocumented
See moreDeclaration
Swift
public enum SegmentedControlSegmentWidthStyle : Int, Sendable
-
Undocumented
See moreDeclaration
Swift
public enum SegmentedControlType : Int, Sendable
-
Undocumented
See moreDeclaration
Swift
public enum SegmentedControlImagePosition : Int, Sendable
-
Undocumented
See moreDeclaration
Swift
public enum TagCollectionScrollDirection : Int, Sendable
-
Undocumented
See moreDeclaration
Swift
public enum TagCollectionAlignment : Int, Sendable
-
Undocumented
See moreDeclaration
Swift
public enum ToolbarViewType : Int, Sendable
-
自定义titleView布局方式,默认水平布局
See moreDeclaration
Swift
public enum ToolbarTitleViewStyle : Int, Sendable
-
转场动画类型
See moreDeclaration
Swift
public enum AnimatedTransitionType : Int, Sendable
-
弹窗动作样式枚举
See moreDeclaration
Swift
public enum AlertActionStyle : Int, Sendable
-
图片下载优先顺序
See moreDeclaration
Swift
public enum ImageDownloadPrioritization : Int, Sendable
-
图片裁剪样式
See moreDeclaration
Swift
public enum ImageCropCroppingStyle : Int, Sendable
-
常用裁剪比率枚举
See moreDeclaration
Swift
public enum ImageCropAspectRatioPreset : Int, Sendable
-
工具栏位置枚举
See moreDeclaration
Swift
public enum ImageCropToolbarPosition : Int, Sendable
-
图片预览媒体类型枚举
See moreDeclaration
Swift
@objc public enum ImagePreviewMediaType : UInt, Sendable
-
Undocumented
See moreDeclaration
Swift
public enum ImagePreviewTransitioningStyle : UInt, Sendable
-
分页横向滚动布局样式枚举
See moreDeclaration
Swift
public enum CollectionViewPagingLayoutStyle : Int, Sendable
-
下拉刷新状态枚举
See moreDeclaration
Swift
public enum PullRefreshState : Int, Sendable
-
上拉追加状态枚举
See moreDeclaration
Swift
public enum InfiniteScrollState : Int, Sendable
-
吐司视图类型
See moreDeclaration
Swift
public enum ToastViewType : Int, Sendable
-
吐司视图位置
See moreDeclaration
Swift
public enum ToastViewPosition : Int, Sendable
-
Undocumented
See moreDeclaration
Swift
public enum SSLPinningMode : Int, Sendable
-
Undocumented
See moreDeclaration
Swift
public enum HTTPRequestQueryStringSerializationStyle : Int, Sendable
-
请求方式
See moreDeclaration
Swift
public enum RequestMethod : String, Sendable
-
请求序列化类型
See moreDeclaration
Swift
public enum RequestSerializerType : Int, Sendable
-
响应序列化类型
See moreDeclaration
Swift
public enum ResponseSerializerType : Int, Sendable
-
请求优先级
See moreDeclaration
Swift
public enum RequestPriority : Int, Sendable
-
请求错误
See moreDeclaration
Swift
public enum RequestError : Swift.Error, CustomNSError, RequestErrorProtocol
-
Asset 授权的状态
See moreDeclaration
Swift
public enum AssetAuthorizationStatus : UInt, Sendable
-
Session export errors.
See moreDeclaration
Swift
public enum AssetSessionExporterError : Error, CustomStringConvertible
-
Undocumented
See moreDeclaration
Swift
public enum AudioPlayerStatus : Int, Sendable
-
Undocumented
See moreDeclaration
Swift
public enum AudioPlayerRepeatMode : Int, Sendable
-
Undocumented
See moreDeclaration
Swift
public enum AudioPlayerShuffleMode : Int, Sendable
-
权限状态枚举
See moreDeclaration
Swift
public enum AuthorizeStatus : Int, Sendable
-
Asset playback states
See moreDeclaration
Swift
public enum VideoPlayerPlaybackState : Int, Sendable
-
Asset buffering states
See moreDeclaration
Swift
public enum VideoPlayerBufferingState : Int, Sendable
-
Undocumented
See moreDeclaration
Swift
public enum HeaderFooterViewType : Int, Sendable
-
Undocumented
See moreDeclaration
Swift
public enum JSONError : Int, Swift.Error
extension JSONError: CustomNSError
-
Undocumented
See moreDeclaration
Swift
public enum JSONWritingOptionsKeys : Sendable
-
视图状态枚举,兼容UIKit和SwiftUI
See moreDeclaration
Swift
public enum ViewState : Equatable
-
Declaration
Swift
public enum ViewControllerLifecycleState : Int, Sendable
-
Undocumented
See moreDeclaration
Swift
public enum PlayerCacheAtionType : Int, Sendable
-
版本状态
See moreDeclaration
Swift
public enum VersionStatus : Int, Sendable
-
Undocumented
See moreDeclaration
Swift
public enum WebSocketConnectionState
-
集合视图元素水平对齐方式枚举
See moreDeclaration
Swift
@objc public enum CollectionViewItemsHorizontalAlignment : Int, Sendable
-
集合视图元素水平对齐方式枚举
See moreDeclaration
Swift
@objc public enum CollectionViewItemsVerticalAlignment : Int, Sendable
-
集合视图元素排布方向枚举
See moreDeclaration
Swift
@objc public enum CollectionViewItemsDirection : Int, Sendable
-
列表容器视图的类型
- ScrollView: UIScrollView。优势:没有其他副作用。劣势:实时的视图内存占用相对大一点,因为所有加载之后的列表视图都在视图层级里面。
- CollectionView: 使用UICollectionView。优势:因为列表被添加到cell上,实时的视图内存占用更少,适合内存要求特别高的场景。劣势:因为cell重用机制的问题,导致列表被移除屏幕外之后,会被放入缓存区,而不存在于视图层级中。如果刚好你的列表使用了下拉刷新视图,在快速切换过程中,就会导致下拉刷新回调不成功的问题。一句话概括:使用CollectionView的时候,就不要让列表使用下拉刷新加载。
Declaration
Swift
public enum PagingListContainerType : Int, Sendable
-
Undocumented
See moreDeclaration
Swift
public enum PasscodeSecurityType : Int, Sendable
-
弹出菜单箭头方向
See moreDeclaration
Swift
public enum PopupMenuArrowDirection : Int, Sendable
-
弹出菜单动画样式
See moreDeclaration
Swift
public enum PopupMenuAnimationStyle : Int, Sendable
-
箭头方向优先级,当控件超出屏幕时会自动调整成反方向
See moreDeclaration
Swift
public enum PopupMenuPriorityDirection : Int, Sendable
-
Undocumented
See moreDeclaration
Swift
public enum PlatformVersionCondition : Sendable
-
Undocumented
See moreDeclaration
Swift
@MainActor public enum PlatformViewVersion<Version, SwiftUIViewType, PlatformSpecificEntity> : Sendable where Version : PlatformVersion, SwiftUIViewType : IntrospectableViewType, PlatformSpecificEntity : PlatformEntity
extension PlatformViewVersion: Comparable