File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments