Extensions

The following extensions are available globally.

Notification+Exception

AnyParameter+Extension

Optional+Extension

  • 可选类安全转换,不为nil

    See more

    Declaration

    Swift

    extension Optional
    extension Optional where Wrapped: ObjectType
    extension Optional where Wrapped: BasicType

ObjectType+Extension

MainActor+Task

NSLock

WrapperCompatible

ReusableViewPool

WKWebView+WebView

WebViewDelegateProxy

ViewPlugin

EnumType

Serializer

Adaptive+Shortcut

UILayoutPriority+Shortcut

UINavigationBar+BarAppearance

UITabBar+BarAppearance

UIToolbar+BarAppearance

AnyEncoder

Encodable+AnyEncoder

Encoder+AnyEncoder

AnyDecoder

Decodable+AnyDecoder

Decoder+AnyDecoder

AnyDateFormatter

AnyCodable

DynamicLayoutViewProtocol

UITextView+Keyboard

CALayer+QuartzCore

NSMutableAttributedString+ResultBuilder

UIImageView+Theme

UIViewController+Toolkit

AnyValidator

AFError+AlamofireImpl

MultipartFormData+AlamofireImpl

UIKit+SkeletonView

SDWebImagePluginIndicator

SDWebImageProgressPluginIndicator

View+HostingView

List

Text+ViewBuilder

Introspect

Color+Toolkit

Font+Toolkit

Divider+Toolkit

  • 修改分割线颜色使用background方法即可,示例:background(Color.gray)

    See more

    Declaration

    Swift

    extension Divider
  • 使用Rectangle实现分割线更灵活可控

    See more

    Declaration

    Swift

    extension Rectangle

EdgeInsets+Toolkit

Binding+Toolkit