Skip to content

Commit

Permalink
Preview demo crash on visionOS
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Aug 26, 2023
1 parent 29e6b14 commit 00fa04a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ extension TransitionViewController: UIPickerViewDataSource {
}

func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int {
switch PickerComponent(rawValue: component)! {
switch PickerComponent(rawValue: component) {
case .transitionType: return transitions.count
case .duration: return durations.count
default: return 0
}
}
}

0 comments on commit 00fa04a

Please sign in to comment.