summaryrefslogtreecommitdiffhomepage
path: root/ios
diff options
context:
space:
mode:
authorEmīls <emils@mullvad.net>2024-10-24 10:45:25 +0200
committerEmīls <emils@mullvad.net>2024-10-24 15:49:36 +0200
commit969278dad024f3e4e80654470528e5316abf9b16 (patch)
treed11d9aaf0ccbd9d51e55ebd7899cd0ca0f998a0b /ios
parente8ff13816234b6622723666d12c10d529dee8a59 (diff)
downloadmullvadvpn-969278dad024f3e4e80654470528e5316abf9b16.tar.xz
mullvadvpn-969278dad024f3e4e80654470528e5316abf9b16.zip
Adjust leading inset for primary button
Diffstat (limited to 'ios')
-rw-r--r--ios/MullvadVPN/View controllers/Tunnel/DisconnectSplitButton.swift2
1 files changed, 2 insertions, 0 deletions
diff --git a/ios/MullvadVPN/View controllers/Tunnel/DisconnectSplitButton.swift b/ios/MullvadVPN/View controllers/Tunnel/DisconnectSplitButton.swift
index 58bb6819ba..640d799de3 100644
--- a/ios/MullvadVPN/View controllers/Tunnel/DisconnectSplitButton.swift
+++ b/ios/MullvadVPN/View controllers/Tunnel/DisconnectSplitButton.swift
@@ -42,6 +42,8 @@ class DisconnectSplitButton: UIView {
secondaryButton.heightAnchor.constraint(equalToConstant: secondaryButtonSize.height)
}
+ primaryButton.configuration?.contentInsets.leading += secondaryButtonSize.width
+
// Ideally, we shouldn't need to manually resize the image ourselves.
// However, since UIButton.Configuration doesn't provide a direct property
// for controlling image scaling (like imageScaling or contentMode in other contexts),