Skip to content

Commit

Permalink
feat(BottomSheet): Update styling
Browse files Browse the repository at this point in the history
  • Loading branch information
WanaldinoTelefonica committed Aug 18, 2023
1 parent 12c89a2 commit b490aeb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ActionRow: UIStackView {

private let titleLabel: IntrinsictHeightLabel = {
let label = IntrinsictHeightLabel()
label.minHeight = 64
label.minHeight = 72
label.numberOfLines = 0
label.textColor = .textPrimary
return label
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class SheetViewController: UIViewController {
label.numberOfLines = 0
label.textAlignment = .left
label.textColor = .textPrimary
label.font = .textPreset4(weight: .regular)
label.font = .textPreset5()
return label
}
return nil
Expand All @@ -55,7 +55,7 @@ public class SheetViewController: UIViewController {
label.text = subtitle
label.numberOfLines = 0
label.textColor = .textPrimary
label.font = .textPreset2(weight: .regular)
label.font = .textPreset3(weight: .regular)
return label
}
return nil
Expand Down Expand Up @@ -164,7 +164,7 @@ public extension SheetViewController {

handleView.translatesAutoresizingMaskIntoConstraints = false
handleView.heightAnchor.constraint(equalToConstant: 4.0).isActive = true
handleView.widthAnchor.constraint(equalToConstant: 24.0).isActive = true
handleView.widthAnchor.constraint(equalToConstant: 32.0).isActive = true
topStackView.addArrangedSubview(CenterView(arrangedSubview: handleView, axis: .horizontal))
containerView.addArrangedSubview(topStackView)

Expand All @@ -190,7 +190,7 @@ public extension SheetViewController {
headerStackView.translatesAutoresizingMaskIntoConstraints = false
contentStackView.addArrangedSubview(headerStackView)

contentStackView.stackView.setCustomSpacing(4, after: headerStackView)
contentStackView.stackView.setCustomSpacing(8, after: headerStackView)

if let subtitleLabel = subtitleLabel {
headerStackView.addArrangedSubview(subtitleLabel)
Expand Down

0 comments on commit b490aeb

Please sign in to comment.