mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-28 19:11:30 +00:00
Change header aspect ratio
This commit is contained in:
parent
6d3c66d251
commit
7ce055ac1d
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue