forked from shadowfacts/Tusker
parent
cd8f0e7926
commit
3d1f506684
|
@ -138,9 +138,16 @@ class VideoGalleryContentViewController: UIViewController, GalleryContentViewCon
|
||||||
label.textColor = .secondaryLabel
|
label.textColor = .secondaryLabel
|
||||||
label.adjustsFontForContentSizeCategory = true
|
label.adjustsFontForContentSizeCategory = true
|
||||||
|
|
||||||
|
let reason = UILabel()
|
||||||
|
reason.text = error.localizedDescription
|
||||||
|
reason.font = .preferredFont(forTextStyle: .subheadline)
|
||||||
|
reason.textColor = .secondaryLabel
|
||||||
|
reason.adjustsFontForContentSizeCategory = true
|
||||||
|
|
||||||
let stackView = UIStackView(arrangedSubviews: [
|
let stackView = UIStackView(arrangedSubviews: [
|
||||||
image,
|
image,
|
||||||
label,
|
label,
|
||||||
|
reason,
|
||||||
])
|
])
|
||||||
stackView.translatesAutoresizingMaskIntoConstraints = false
|
stackView.translatesAutoresizingMaskIntoConstraints = false
|
||||||
stackView.axis = .vertical
|
stackView.axis = .vertical
|
||||||
|
|
Loading…
Reference in New Issue