We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 637334c commit 04edffbCopy full SHA for 04edffb
Shared/Views/AccessoryViews/SwiftUI/SlideShowView.swift
@@ -87,6 +87,7 @@ struct SlideShowView: View {
87
HStack(alignment: .center) {
88
if selection != 0 {
89
Button {
90
+ guard selection > 0 else { return }
91
selection -= 1
92
invalidateTimer()
93
} label: {
@@ -105,6 +106,7 @@ struct SlideShowView: View {
105
106
Spacer()
107
if selection != images.count-1 {
108
109
+ guard selection < images.count-1 else { return }
110
selection += 1
111
112
0 commit comments