From eb9361b59d3887e10b551ddc4c74eba11cc87ba4 Mon Sep 17 00:00:00 2001 From: rlarldud1234 Date: Sun, 5 Mar 2023 16:45:05 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20::=2010=EB=B6=84=20?= =?UTF-8?q?=EB=8B=A8=EC=9C=84=EB=A1=9C=20=EA=B3=A0=EC=B9=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/TimePicker/SDTimePickerRepresentable.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SemicolonDesign/Sources/TimePicker/SDTimePickerRepresentable.swift b/SemicolonDesign/Sources/TimePicker/SDTimePickerRepresentable.swift index e5a0b7c6..3a3f326b 100644 --- a/SemicolonDesign/Sources/TimePicker/SDTimePickerRepresentable.swift +++ b/SemicolonDesign/Sources/TimePicker/SDTimePickerRepresentable.swift @@ -11,7 +11,7 @@ struct SDTimePickerRepresentable: UIViewRepresentable { return SDTimePickerCoordinator( self, hour: Array(0...23), - minute: Array(0...59) + minute: [0, 10, 20, 30, 40, 50] ) } @@ -29,7 +29,7 @@ struct SDTimePickerRepresentable: UIViewRepresentable { animated: false ) pickerView.selectRow( - minute.firstIndex(of: self.minute)! + (minute.count * 5), + minute.firstIndex { $0 >= self.minute }! + (minute.count * 5), inComponent: 1, animated: false )