|
@@ -95,9 +95,10 @@ extension TransitionViewController: UIPickerViewDataSource {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int {
|
|
func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int {
|
|
|
- switch PickerComponent(rawValue: component)! {
|
|
|
|
|
|
|
+ switch PickerComponent(rawValue: component) {
|
|
|
case .transitionType: return transitions.count
|
|
case .transitionType: return transitions.count
|
|
|
case .duration: return durations.count
|
|
case .duration: return durations.count
|
|
|
|
|
+ default: return 0
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|