Skip to content

Commit db6f899

Browse files
committed
Adjusted banner to accommodate both iPhone and iPad in various sizes
1 parent 68bc598 commit db6f899

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Cryptomator/VaultList/VaultListViewController.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,10 @@ class VaultListViewController: ListViewController<VaultCellViewModel> {
150150
let textLabel = UILabel()
151151
textLabel.text = "Lifetime License is 33%* off in December!"
152152
textLabel.textColor = .white
153-
textLabel.font = UIFont.preferredFont(forTextStyle: .body)
153+
textLabel.font = UIFont.preferredFont(forTextStyle: .footnote)
154154
textLabel.adjustsFontSizeToFitWidth = true
155155
textLabel.minimumScaleFactor = 0.5
156+
textLabel.numberOfLines = 2
156157
textLabel.translatesAutoresizingMaskIntoConstraints = false
157158

158159
let dismissButton = UIButton(type: .close)
@@ -187,7 +188,7 @@ class VaultListViewController: ListViewController<VaultCellViewModel> {
187188
banner.trailingAnchor.constraint(equalTo: view.trailingAnchor, constant: -16),
188189
banner.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor, constant: -16),
189190
banner.centerXAnchor.constraint(equalTo: view.centerXAnchor),
190-
banner.heightAnchor.constraint(equalToConstant: 60)
191+
banner.heightAnchor.constraint(equalToConstant: 50)
191192
])
192193

193194
bannerView = banner

0 commit comments

Comments
 (0)