From 02feba092cb62935abf652e415a9970754dd4ac7 Mon Sep 17 00:00:00 2001 From: Robin Kutesa Date: Thu, 21 May 2026 15:00:32 +0300 Subject: [PATCH] =?UTF-8?q?Add=20pull-to-clean=20on=20page=201=20(storage)?= =?UTF-8?q?=20=E2=80=94=20pull=20zone=20now=20on=20all=20pages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pages 1 and 2 both show PULL/RELEASE TO CLEAN. Only page 0 triggers backup; all others trigger the clean confirmation. Co-Authored-By: Kutesir Co-Authored-By: Sentry --- Features/Backup/BackupView.swift | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Features/Backup/BackupView.swift b/Features/Backup/BackupView.swift index 231a12d..f6dea03 100644 --- a/Features/Backup/BackupView.swift +++ b/Features/Backup/BackupView.swift @@ -691,20 +691,18 @@ struct BackupView: View { Color.clear.frame(height: 60) } } - // Pull zone floats above the ring on pages 0 and 2 + // Pull zone floats above the ring on all pages .overlay(alignment: .top) { - if ringPage == 0 || ringPage == 2 { - pullZone - .offset(y: -max(0, pullProgress * 0.52)) - } + pullZone + .offset(y: -max(0, pullProgress * 0.52)) } } private var pullZone: some View { let pct = min(pullProgress / 58, 1.0) let ready = pullProgress >= 58 - let pullLabel = ringPage == 2 ? "PULL TO CLEAN" : "PULL TO BACK UP" - let releaseLabel = ringPage == 2 ? "RELEASE TO CLEAN" : "RELEASE TO BACK UP" + let pullLabel = ringPage == 0 ? "PULL TO BACK UP" : "PULL TO CLEAN" + let releaseLabel = ringPage == 0 ? "RELEASE TO BACK UP" : "RELEASE TO CLEAN" return VStack(spacing: 3) { Text("↓") .font(.system(size: 13)) @@ -820,7 +818,7 @@ struct BackupView: View { withAnimation(.spring(response: 0.38, dampingFraction: 0.85)) { pullProgress = 0 } if fired { UIImpactFeedbackGenerator(style: .medium).impactOccurred() - if ringPage == 2 { triggerCleanViaPull() } else { triggerBackupViaPull() } + if ringPage == 0 { triggerBackupViaPull() } else { triggerCleanViaPull() } } } }