Change header aspect ratio

This commit is contained in:
Justin Mazzocchi 2020-09-27 22:22:01 -07:00
parent 6d3c66d251
commit 7ce055ac1d
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C

View file

@ -68,6 +68,8 @@ private extension AccountHeaderView {
addSubview(headerImageView)
addSubview(baseStackView)
headerImageView.translatesAutoresizingMaskIntoConstraints = false
headerImageView.contentMode = .scaleAspectFill
headerImageView.clipsToBounds = true
baseStackView.translatesAutoresizingMaskIntoConstraints = false
baseStackView.axis = .vertical
@ -91,7 +93,7 @@ private extension AccountHeaderView {
let headerImageAspectRatioConstraint = headerImageView.heightAnchor.constraint(
equalTo: headerImageView.widthAnchor,
multiplier: 9 / 16)
multiplier: 1 / 3)
headerImageAspectRatioConstraint.priority = .init(999)