diff options
| -rw-r--r-- | ios/MullvadVPN/Notifications/UI/NotificationBannerView.swift | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ios/MullvadVPN/Notifications/UI/NotificationBannerView.swift b/ios/MullvadVPN/Notifications/UI/NotificationBannerView.swift index dc2055765b..1ff4ee0c14 100644 --- a/ios/MullvadVPN/Notifications/UI/NotificationBannerView.swift +++ b/ios/MullvadVPN/Notifications/UI/NotificationBannerView.swift @@ -120,11 +120,8 @@ final class NotificationBannerView: UIView { } private func addConstraints() { - let actionButtonPriority: UILayoutPriority = .defaultHigh + 1 - actionButton.setContentCompressionResistancePriority(actionButtonPriority, for: .horizontal) - actionButton.setContentCompressionResistancePriority(actionButtonPriority, for: .vertical) - actionButton.setContentHuggingPriority(actionButtonPriority, for: .horizontal) - actionButton.setContentHuggingPriority(actionButtonPriority, for: .vertical) + actionButton.setContentCompressionResistancePriority(.required, for: .horizontal) + actionButton.setContentHuggingPriority(.required, for: .horizontal) NSLayoutConstraint.activate([ indicatorView.bottomAnchor.constraint(equalTo: titleLabel.firstBaselineAnchor), |
