diff options
| author | Jon Petersson <jon.petersson@kvadrat.se> | 2023-08-10 09:52:01 +0200 |
|---|---|---|
| committer | Jon Petersson <jon.petersson@kvadrat.se> | 2023-08-10 09:52:01 +0200 |
| commit | b792dcda2935c38c256b0ca1b301194fd9808838 (patch) | |
| tree | 69e68bf90156c3ef1d792bcb68f57a1058ed0d35 | |
| parent | d60839ad829e04e2de0d2660e5bbf44a4291e9e1 (diff) | |
| download | mullvadvpn-b792dcda2935c38c256b0ca1b301194fd9808838.tar.xz mullvadvpn-b792dcda2935c38c256b0ca1b301194fd9808838.zip | |
Fix notification action button layout priority on iOS14
| -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), |
