UIView

extension UIView
extension UIView: FUIColorSchemeCustomizable
extension UIView: SkeletonViewExtended
  • Show the skeleton with/without animation by UIAccessibility.isReduceMotionEnabled.

    Declaration

    Swift

    @MainActor
    public func showSkeleton(color: UIColor = .preferredFioriColor(forStyle: .quaternaryFill))

    Parameters

    color

    The color of the skeleton. Default value is quaternaryFill.

  • Hide the skeleton.

    Declaration

    Swift

    @MainActor
    public func hideSkeleton(transition: SkeletonTransitionStyle = .none)

    Parameters

    transition

    The style of the transition when the skeleton disappears. Defaults value is none.

  • If isNUICached is true, the corresponding property value will be cached as its current value when nuiClass is called for the first time to apply theming. This cached value will be used to recover the corresponding property value when nuiClass is set to nil. Default is false.

    Declaration

    Swift

    @MainActor
    public var isNUICached: Bool { get set }
  • developer can update a property’s cached value to specific value

    Declaration

    Swift

    @MainActor
    public func updateCachedPropertyValue(property key: String, value: Any?)
  • The style class property. Setting this value applys the style.

    Declaration

    Swift

    @objc
    @MainActor
    public var nuiClass: String? { get set }
  • The style class path property with type of a FioriStyle array. Setting this property converts the value to a String with “:” as separator, and the converted String value would be set to ‘nuiClass’ for applying the styles.

    Declaration

    Swift

    @MainActor
    public var styleClassPath: [FioriStyle]? { get set }
  • Undocumented

    Declaration

    Swift

    @IBInspectable
    @MainActor
    var isSkeletonable: Bool { get set }
  • Undocumented

    Declaration

    Swift

    @IBInspectable
    @MainActor
    var isHiddenWhenSkeletonIsActive: Bool { get set }
  • Undocumented

    Declaration

    Swift

    @IBInspectable
    @MainActor
    var isUserInteractionDisabledWhenSkeletonIsActive: Bool { get set }
  • Undocumented

    Declaration

    Swift

    @IBInspectable
    @MainActor
    var skeletonCornerRadius: Float { get set }