From be11d656a6bf3bac6ea6a8b4237a0d5f82a01113 Mon Sep 17 00:00:00 2001 From: Hwee-Boon Yar Date: Mon, 16 Apr 2018 12:25:24 +0800 Subject: [PATCH] Make ticket quantity selection start from 1 --- .../RedeemTicketsQuantitySelectionViewController.swift | 2 ++ .../TransferTicketsQuantitySelectionViewController.swift | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Trust/Redeem/ViewControllers/RedeemTicketsQuantitySelectionViewController.swift b/Trust/Redeem/ViewControllers/RedeemTicketsQuantitySelectionViewController.swift index e2b30c101..fda349899 100644 --- a/Trust/Redeem/ViewControllers/RedeemTicketsQuantitySelectionViewController.swift +++ b/Trust/Redeem/ViewControllers/RedeemTicketsQuantitySelectionViewController.swift @@ -44,6 +44,8 @@ class RedeemTicketsQuantitySelectionViewController: UIViewController { view.addSubview(ticketView) quantityStepper.translatesAutoresizingMaskIntoConstraints = false + quantityStepper.minimumValue = 1 + quantityStepper.value = 1 view.addSubview(quantityStepper) let stackView = UIStackView(arrangedSubviews: [ diff --git a/Trust/Transfer/ViewControllers/TransferTicketsQuantitySelectionViewController.swift b/Trust/Transfer/ViewControllers/TransferTicketsQuantitySelectionViewController.swift index 177a6a4a4..ef717ed60 100644 --- a/Trust/Transfer/ViewControllers/TransferTicketsQuantitySelectionViewController.swift +++ b/Trust/Transfer/ViewControllers/TransferTicketsQuantitySelectionViewController.swift @@ -40,6 +40,8 @@ class TransferTicketsQuantitySelectionViewController: UIViewController { view.addSubview(ticketView) quantityStepper.translatesAutoresizingMaskIntoConstraints = false + quantityStepper.minimumValue = 1 + quantityStepper.value = 1 view.addSubview(quantityStepper) let stackView = UIStackView(arrangedSubviews: [