diff options
Diffstat (limited to 'Sora/Views/Settings/Section')
| -rw-r--r-- | Sora/Views/Settings/Section/SettingsDetailsView.swift | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Sora/Views/Settings/Section/SettingsDetailsView.swift b/Sora/Views/Settings/Section/SettingsDetailsView.swift index 885ef6f..3866994 100644 --- a/Sora/Views/Settings/Section/SettingsDetailsView.swift +++ b/Sora/Views/Settings/Section/SettingsDetailsView.swift @@ -22,15 +22,17 @@ struct SettingsDetailsView: View { } #endif + let preloadRange = 0...10 + #if os(macOS) Picker("Preloaded Images", selection: $settings.preloadedCarouselImages) { - ForEach(1...10, id: \.self) { columns in Text("\(columns)") } + ForEach(preloadRange, id: \.self) { columns in Text("\(columns)") } } #else Stepper( "Preloaded Images: \(settings.preloadedCarouselImages)", value: $settings.preloadedCarouselImages, - in: 1...10 + in: preloadRange ) #endif } |