From 6f9ed45ba10b07213499095939999db3accfcec6 Mon Sep 17 00:00:00 2001 From: bobstern Date: Mon, 8 Nov 2021 17:04:09 -0800 Subject: [PATCH] Version bumped to 1.2 Step View Builder.swift: Index out of range bug in Button views fixed by enclosing entire step view in condition: if idx < vm.newProfile.shotSteps.count { --- Decent Profile Editor/Views/Step View Builder.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Decent Profile Editor/Views/Step View Builder.swift b/Decent Profile Editor/Views/Step View Builder.swift index 261bad1..166b84c 100644 --- a/Decent Profile Editor/Views/Step View Builder.swift +++ b/Decent Profile Editor/Views/Step View Builder.swift @@ -40,7 +40,7 @@ struct StepViewBuilder: View { var body: some View { let stepBinding = stepBindingSafe(idx: idx) // $vm.newProfile.shotSteps[idx] - if idx < vm.newProfile.shotSteps.count { + if idx < vm.newProfile.shotSteps.count { // fix out of range error for button views. // HStack has all UX elements except Swap button: HStack { Group {