Skip to content

Commit 12ed30a

Browse files
committed
Make ResizeablePicker Coordinator protocol methods public
1 parent 1d1b3a2 commit 12ed30a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

LoopKitUI/Views/ResizeablePicker.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ public struct ResizeablePicker<SelectionValue>: UIViewRepresentable where Select
6363
self.data = newData
6464
}
6565

66-
func numberOfComponents(in pickerView: UIPickerView) -> Int {
66+
public func numberOfComponents(in pickerView: UIPickerView) -> Int {
6767
1
6868
}
6969

70-
func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int {
70+
public func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int {
7171
data.count
7272
}
7373

74-
func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?) -> UIView {
74+
public func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?) -> UIView {
7575
let text = self.picker.formatter(data[row])
7676
let result = view as? UILabel ?? UILabel()
7777
result.text = text
@@ -84,7 +84,7 @@ public struct ResizeablePicker<SelectionValue>: UIViewRepresentable where Select
8484
return result
8585
}
8686

87-
func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
87+
public func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
8888
picker.selectedRow = row
8989
picker.selection.wrappedValue = data[row]
9090
}

0 commit comments

Comments
 (0)