Skip to content

Commit 1d1b3a2

Browse files
committed
Make ResizeablePicker protocol methods public to match public struct requirement
1 parent 631bdc8 commit 1d1b3a2

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
@@ -29,11 +29,11 @@ public struct ResizeablePicker<SelectionValue>: UIViewRepresentable where Select
2929
self.colorer = colorer
3030
}
3131

32-
func makeCoordinator() -> ResizeablePicker.Coordinator {
32+
public func makeCoordinator() -> ResizeablePicker.Coordinator {
3333
Coordinator(self)
3434
}
3535

36-
func makeUIView(context: UIViewRepresentableContext<ResizeablePicker>) -> UIPickerView {
36+
public func makeUIView(context: UIViewRepresentableContext<ResizeablePicker>) -> UIPickerView {
3737
let picker = UIPickerViewResizeable(frame: .zero)
3838

3939
picker.dataSource = context.coordinator
@@ -42,15 +42,15 @@ public struct ResizeablePicker<SelectionValue>: UIViewRepresentable where Select
4242
return picker
4343
}
4444

45-
func updateUIView(_ view: UIPickerView, context: UIViewRepresentableContext<ResizeablePicker>) {
45+
public func updateUIView(_ view: UIPickerView, context: UIViewRepresentableContext<ResizeablePicker>) {
4646
context.coordinator.updateData(newData: data)
4747
view.reloadAllComponents()
4848
if view.selectedRow(inComponent: 0) != selectedRow {
4949
view.selectRow(selectedRow, inComponent: 0, animated: false)
5050
}
5151
}
5252

53-
class Coordinator: NSObject, UIPickerViewDataSource, UIPickerViewDelegate {
53+
public class Coordinator: NSObject, UIPickerViewDataSource, UIPickerViewDelegate {
5454
private var picker: ResizeablePicker
5555
private var data: [SelectionValue]
5656

0 commit comments

Comments
 (0)