Skip to content

Commit

Permalink
πŸ”€ :: (#39) SDTimePicker 10λΆ„ λ‹¨μœ„λ‘œ λ³€κ²½
Browse files Browse the repository at this point in the history
  • Loading branch information
rlarldud1234 authored Mar 5, 2023
2 parents 386e4db + eb9361b commit 8cb3985
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
)
}

Expand All @@ -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
)
Expand Down

0 comments on commit 8cb3985

Please sign in to comment.