summaryrefslogtreecommitdiffhomepage
path: root/ios
diff options
context:
space:
mode:
authorJon Petersson <jon.petersson@kvadrat.se>2023-08-10 09:52:01 +0200
committerJon Petersson <jon.petersson@kvadrat.se>2023-08-10 09:52:01 +0200
commitb792dcda2935c38c256b0ca1b301194fd9808838 (patch)
tree69e68bf90156c3ef1d792bcb68f57a1058ed0d35 /ios
parentd60839ad829e04e2de0d2660e5bbf44a4291e9e1 (diff)
downloadmullvadvpn-b792dcda2935c38c256b0ca1b301194fd9808838.tar.xz
mullvadvpn-b792dcda2935c38c256b0ca1b301194fd9808838.zip
Fix notification action button layout priority on iOS14
Diffstat (limited to 'ios')
-rw-r--r--ios/MullvadVPN/Notifications/UI/NotificationBannerView.swift7
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),