Rightpoint / Eject

An eject button for Interface Builder to generate swift code
MIT License
522 stars 24 forks source link

UIDatePicker minuteInterval error #24

Closed transitmark closed 7 years ago

transitmark commented 7 years ago

When a UIDatePicker is created the minuteInterval is incorrect. It should be in Int.

open var minuteInterval: Int // display minutes wheel with interval. interval must be evenly divided into 60. default is 1. min is 1, max is 30

let timePicker = UIDatePicker() timePicker.datePickerMode = .dateAndTime timePicker.minuteInterval = .1 timePicker.translatesAutoresizingMaskIntoConstraints = false

SquaredTiki commented 7 years ago

Just submitted a PR to fix this, see #25. Only a small change.

KingOfBrian commented 7 years ago

Merged in the PR -- website should be updated in a few! Thanks @smartcop and @SquaredTiki !