summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBug Magnet <marco.nikic@mullvad.net>2025-09-19 09:04:30 +0200
committerBug Magnet <marco.nikic@mullvad.net>2025-09-19 09:04:30 +0200
commite0bb1f2eb3396b925ade89f5a46420563e59dc4c (patch)
treea57e33b50bb236bb981075e9b18f7f256c0554c7
parentc072667ffed6b4b698cec5a4a8adff00be88c3e5 (diff)
parentcc5a18b2df09923335d5125f5c62442dce226b96 (diff)
downloadmullvadvpn-e0bb1f2eb3396b925ade89f5a46420563e59dc4c.tar.xz
mullvadvpn-e0bb1f2eb3396b925ade89f5a46420563e59dc4c.zip
Merge branch 'api-access-form-cells-break-with-long-strings-ios-1280'
-rw-r--r--ios/MullvadVPN/Coordinators/Settings/APIAccess/Cells/SwitchCellContentView.swift1
1 files changed, 1 insertions, 0 deletions
diff --git a/ios/MullvadVPN/Coordinators/Settings/APIAccess/Cells/SwitchCellContentView.swift b/ios/MullvadVPN/Coordinators/Settings/APIAccess/Cells/SwitchCellContentView.swift
index 10c82b6910..67613ec0bf 100644
--- a/ios/MullvadVPN/Coordinators/Settings/APIAccess/Cells/SwitchCellContentView.swift
+++ b/ios/MullvadVPN/Coordinators/Settings/APIAccess/Cells/SwitchCellContentView.swift
@@ -83,6 +83,7 @@ class SwitchCellContentView: UIView, UIContentView, UITextFieldDelegate {
}
private func addSubviews() {
+ switchContainer.setContentCompressionResistancePriority(.required, for: .horizontal)
addConstrainedSubviews([textLabel, switchContainer]) {
textLabel.pinEdgesToSuperviewMargins(.all().excluding(.trailing))
switchContainer.centerYAnchor.constraint(equalTo: centerYAnchor)