Fix scroll insets, increase contrast
This commit is contained in:
parent
2a161886a1
commit
b8b59674f3
|
@ -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),
|
||||
])
|
||||
|
|
Loading…
Reference in New Issue