Skip to content

Commit

Permalink
Version bumped to 1.2
Browse files Browse the repository at this point in the history
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 {
  • Loading branch information
bobstern committed Nov 9, 2021
1 parent 2dc1b75 commit 6f9ed45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Decent Profile Editor/Views/Step View Builder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6f9ed45

Please sign in to comment.