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

WrapperCompatible

ReusableViewPool

WKWebView+WebView

ViewPlugin

EnumType

Serializer

UILayoutPriority+AutoLayout

UINavigationBar+BarAppearance

UITabBar+BarAppearance

UIToolbar+BarAppearance

AnyEncoder

Encodable+AnyEncoder

Encoder+AnyEncoder

AnyDecoder

Decodable+AnyDecoder

Decoder+AnyDecoder

AnyDateFormatter

AnyCodable

DynamicLayoutViewProtocol

UITextView+Keyboard

CALayer+QuartzCore

Adaptive+Shortcut

UIImageView+Theme

UIViewController+Toolkit

AnyValidator

AFError+AlamofireImpl

MultipartFormData+AlamofireImpl

UIKit+SkeletonView

View+HostingView

List

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