Card
A component that serves as a container for provided content.
Preview
Code Example
let model = CardVM {
$0.borderWidth = .large
$0.cornerRadius = .small
$0.shadow = .large
$0.backgroundColor = .accentBackground
}
API
CardVM Props
A model that defines the appearance properties for a card component.
Name | Type | Default | Description |
---|
backgroundColor | UniversalColor? | nil | The background color of the card. |
borderWidth | BorderWidth | medium | The border thickness of the card. |
contentPaddings | Paddings | Paddings(padding: 16) | The padding applied to the card's content area. |
cornerRadius | ComponentRadius | medium | The corner radius of the card. |
shadow | Shadow | medium | The shadow of the card. |
SUCard
public init(
model: CardVM = .init(),
content: @escaping () -> Content
)
UKCard
Initializers
public init(
model: CardVM = .init(),
content: @escaping () -> Content
)
Public Properties
Name | Type | Description |
---|
model | CardVM | A model that defines the appearance properties. |
Public Subviews
Name | Type | Description |
---|
content | Content | The primary content of the card, provided as a custom view. |