Skip to content

Commit 93c416c

Browse files
update card preview
1 parent 841c74c commit 93c416c

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Examples/DemosApp/DemosApp/ComponentsPreview/PreviewPages/CardPreview.swift

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import UIKit
44

55
struct CardPreview: View {
66
@State private var model = CardVM()
7-
7+
88
var body: some View {
99
VStack {
1010
PreviewWrapper(title: "UIKit") {
@@ -52,17 +52,16 @@ private func cardContent() -> UIView {
5252
titleLabel.font = UniversalFont.mdHeadline.uiFont
5353
titleLabel.textColor = UniversalColor.foreground.uiColor
5454
titleLabel.numberOfLines = 0
55-
55+
5656
let subtitleLabel = UILabel()
57-
subtitleLabel.text = "Card is a container for text, photos, and other content."
57+
subtitleLabel.text = "Card is a container for text, images, and other content."
5858
subtitleLabel.font = UniversalFont.mdBody.uiFont
5959
subtitleLabel.textColor = UniversalColor.secondaryForeground.uiColor
6060
subtitleLabel.numberOfLines = 0
61-
62-
61+
6362
let stackView = UIStackView(arrangedSubviews: [titleLabel, subtitleLabel])
6463
stackView.axis = .vertical
6564
stackView.spacing = 8
66-
65+
6766
return stackView
6867
}

0 commit comments

Comments
 (0)