[O] Set maximum value to avoid overflows

This commit is contained in:
Hykilpikonna
2021-01-27 18:19:28 -05:00
parent fa69fc92a2
commit ba0caaade3
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -280,7 +280,7 @@
<stackView opaque="NO" contentMode="scaleToFill" spacing="20" translatesAutoresizingMaskIntoConstraints="NO" id="cDZ-bm-jzY">
<rect key="frame" x="0.0" y="230" width="374" height="36"/>
<subviews>
<stepper opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" maximumValue="100" translatesAutoresizingMaskIntoConstraints="NO" id="Em8-2h-OLJ">
<stepper opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" wraps="YES" maximumValue="100" translatesAutoresizingMaskIntoConstraints="NO" id="Em8-2h-OLJ">
<rect key="frame" x="0.0" y="0.0" width="94" height="36"/>
<connections>
<action selector="wvmStepperChange:" destination="r8W-6e-Hn2" eventType="valueChanged" id="8FF-vP-TMD"/>
+1
View File
@@ -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