Fix scroll insets, increase contrast

This commit is contained in:
Jed Fox 2022-12-23 11:14:04 -05:00
parent 2a161886a1
commit b8b59674f3
No known key found for this signature in database
GPG Key ID: 0B61D18EA54B47E1
1 changed files with 4 additions and 1 deletions

View File

@ -49,10 +49,13 @@ class AltViewController: UIViewController {
label.isEditable = false
label.tintColor = .white
label.text = alt
label.textContainerInset = UIEdgeInsets(horizontal: 8, vertical: 16)
label.verticalScrollIndicatorInsets.bottom = 4
view.backgroundColor = .systemBackground
view.addSubview(label)
label.pinToParent(padding: UIEdgeInsets(horizontal: 8, vertical: 0))
label.pinToParent()
NSLayoutConstraint.activate([
label.widthAnchor.constraint(lessThanOrEqualToConstant: 400),
])