SkeletonAppearance
public class SkeletonAppearance : NSObject, @unchecked Sendable
骨架屏通用样式
-
单例对象
Declaration
Swift
public static let appearance: SkeletonAppearance
-
骨架动画,默认nil
Declaration
Swift
public var animation: SkeletonAnimationProtocol?
-
骨架背景色,默认自动适配
Declaration
Swift
public var backgroundColor: UIColor
-
骨架颜色,默认自动适配
Declaration
Swift
public var skeletonColor: UIColor
-
多行标签行高,默认15
Declaration
Swift
public var lineHeight: CGFloat
-
多行标签固定间距,默认10
Declaration
Swift
public var lineSpacing: CGFloat
-
多行标签最后一行百分比,默认0.7
Declaration
Swift
public var lastLinePercent: CGFloat
-
多行标签圆角,默认0
Declaration
Swift
public var lineCornerRadius: CGFloat