SkeletonView

@MainActor
open class SkeletonView : UIView

骨架屏视图,支持设置占位图片

  • 自定义动画,默认通用样式

    Declaration

    Swift

    @MainActor
    open var animation: SkeletonAnimationProtocol?
  • 动画层列表

    Declaration

    Swift

    @MainActor
    open var animationLayers: [CAGradientLayer]
  • 骨架图片,默认空

    Declaration

    Swift

    @MainActor
    open var image: UIImage? { get set }
  • Undocumented

    Declaration

    Swift

    @MainActor
    override open class var layerClass: AnyClass { get }
  • Undocumented

    Declaration

    Swift

    @MainActor
    override public init(frame: CGRect)
  • Undocumented

    Declaration

    Swift

    @MainActor
    public required init?(coder: NSCoder)
  • 解析视图样式

    Declaration

    Swift

    @MainActor
    open func parseView(_ view: UIView)
  • 自动开始和停止动画

    Declaration

    Swift

    @MainActor
    override open func didMoveToWindow()
  • 更新动画层列表,子类可覆写

    Declaration

    Swift

    @MainActor
    open func updateAnimationLayers()