From ba0caaade32c4c7ef6b4c6edd236bd270607becb Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Wed, 27 Jan 2021 18:19:28 -0500 Subject: [PATCH] [O] Set maximum value to avoid overflows --- ProjectClock/Base.lproj/Main.storyboard | 2 +- ProjectClock/DebugViewController.swift | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ProjectClock/Base.lproj/Main.storyboard b/ProjectClock/Base.lproj/Main.storyboard index 01a5ed1..ae6c50d 100644 --- a/ProjectClock/Base.lproj/Main.storyboard +++ b/ProjectClock/Base.lproj/Main.storyboard @@ -280,7 +280,7 @@ - + diff --git a/ProjectClock/DebugViewController.swift b/ProjectClock/DebugViewController.swift index b91f44f..21056a0 100644 --- a/ProjectClock/DebugViewController.swift +++ b/ProjectClock/DebugViewController.swift @@ -19,6 +19,7 @@ class DebugViewController: UIViewController override func viewDidLoad() { super.viewDidLoad() + wvmStepper.maximumValue = Double(wvms.count - 1) // Request notification permission UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge, .sound]) { success, error in