Skip to content

Commit 4d8b7ec

Browse files
PanchamiShenoympospese
authored andcommitted
[CM-903] Updated catalogdisplayView layout
1 parent 174bd7e commit 4d8b7ec

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Sources/YComponentBrowser/UI Components/Generic Views/CatalogDisplayView.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ final public class CatalogDisplayView<View: ContentView>: UIView {
5151
static func margin(for edge: Edge) -> CGFloat {
5252
switch edge {
5353
case .leading, .top:
54-
return 10
54+
return 16
5555
case .trailing, .bottom:
56-
return -10
56+
return -16
5757
}
5858
}
5959
}
@@ -66,7 +66,7 @@ final public class CatalogDisplayView<View: ContentView>: UIView {
6666
private let titleLabel: UILabel = {
6767
let label = UILabel()
6868

69-
label.font = UIFont.preferredFont(forTextStyle: .headline)
69+
label.font = UIFont.preferredFont(forTextStyle: .body)
7070
label.textColor = UIColor.label
7171

7272
return label
@@ -126,6 +126,9 @@ final public class CatalogDisplayView<View: ContentView>: UIView {
126126

127127
outerStackView.addArrangedSubview(innerStackView)
128128
outerStackView.addArrangedSubview(displayView)
129+
130+
innerStackView.spacing = 4
131+
outerStackView.spacing = 8
129132

130133
self.addSubview(outerStackView)
131134

0 commit comments

Comments
 (0)