STRUCT

CommonUIStyle

Contents

public struct CommonUIStyle: StyleLoadable, Equatable

A foundational style configuration that defines common UI properties shared across components.

CommonUIStyle encapsulates the most frequently used styling properties for UI components, including padding/spacing and background color configuration. It supports both named color references (for theme-based styling) and direct color values.

Properties

paddingStyle

public let paddingStyle: PaddingStyle

Defines padding and spacing properties for the styled component.

backgroundColor

public let backgroundColor: UIColor?

The resolved background color ready for UI application.

Methods

init(from:)

public init(from decoder: any Decoder) throws

Parameters

Name Description
decoder The decoder to read data from.

==(::)

public static func == (lhs: CommonUIStyle, rhs: CommonUIStyle) -> Bool

Parameters

Name Description
lhs A value to compare.
rhs Another value to compare.