summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2023-08-10 11:00:03 +0200
committerAndrej Mihajlov <and@mullvad.net>2023-08-10 11:00:03 +0200
commit5b5a4a68b044729ae9d7f1f8247ed35dbb4e8863 (patch)
tree69e68bf90156c3ef1d792bcb68f57a1058ed0d35
parentd60839ad829e04e2de0d2660e5bbf44a4291e9e1 (diff)
parentb792dcda2935c38c256b0ca1b301194fd9808838 (diff)
downloadmullvadvpn-5b5a4a68b044729ae9d7f1f8247ed35dbb4e8863.tar.xz
mullvadvpn-5b5a4a68b044729ae9d7f1f8247ed35dbb4e8863.zip
Merge branch 'fix-notification-action-button-ios14'
-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),