[O] Set maximum value to avoid overflows
This commit is contained in:
@@ -280,7 +280,7 @@
|
|||||||
<stackView opaque="NO" contentMode="scaleToFill" spacing="20" translatesAutoresizingMaskIntoConstraints="NO" id="cDZ-bm-jzY">
|
<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"/>
|
<rect key="frame" x="0.0" y="230" width="374" height="36"/>
|
||||||
<subviews>
|
<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"/>
|
<rect key="frame" x="0.0" y="0.0" width="94" height="36"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="wvmStepperChange:" destination="r8W-6e-Hn2" eventType="valueChanged" id="8FF-vP-TMD"/>
|
<action selector="wvmStepperChange:" destination="r8W-6e-Hn2" eventType="valueChanged" id="8FF-vP-TMD"/>
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ class DebugViewController: UIViewController
|
|||||||
override func viewDidLoad()
|
override func viewDidLoad()
|
||||||
{
|
{
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
wvmStepper.maximumValue = Double(wvms.count - 1)
|
||||||
|
|
||||||
// Request notification permission
|
// Request notification permission
|
||||||
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge, .sound]) { success, error in
|
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge, .sound]) { success, error in
|
||||||
|
|||||||
Reference in New Issue
Block a user