From b10b5d46ea513b11b8d932373ff629454a7373bf Mon Sep 17 00:00:00 2001 From: keisukeYamagishi Date: Mon, 5 Aug 2024 12:10:41 +0900 Subject: [PATCH] Correct Increment AlertAction --- RxAlertExample/ViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RxAlertExample/ViewController.swift b/RxAlertExample/ViewController.swift index 13f594a..861bb6b 100644 --- a/RxAlertExample/ViewController.swift +++ b/RxAlertExample/ViewController.swift @@ -132,8 +132,8 @@ extension ViewController: UITableViewDelegate { message: "RxAlert Message", actions: [AlertAction(title: "OK", type: 0, style: .default), AlertAction(title: "First", type: 1, style: .default), - AlertAction(title: "Second", type: 1, style: .destructive), - AlertAction(title: "Cancel", type: 2, style: .cancel)], + AlertAction(title: "Second", type: 2, style: .destructive), + AlertAction(title: "Cancel", type: 3, style: .cancel)], preferredStyle: .actionSheet) .subscribe(onNext: { index in print("index: \(index)")