File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99import SwiftUI
1010import UIKit
1111
12- struct ResizeablePicker < SelectionValue> : UIViewRepresentable where SelectionValue: CustomStringConvertible & Hashable {
12+ public struct ResizeablePicker < SelectionValue> : UIViewRepresentable where SelectionValue: CustomStringConvertible & Hashable {
1313 private let selection : Binding < SelectionValue >
1414 private var selectedRow : Int = 0
1515 // TODO: Would be nice if we could just use `ForEach` and Content, but for now, this'll do
1616 private let data : [ SelectionValue ]
1717 private let formatter : ( SelectionValue ) -> String
1818 private let colorer : ( SelectionValue ) -> Color
1919
20- init ( selection: Binding < SelectionValue > ,
20+ public init ( selection: Binding < SelectionValue > ,
2121 data: [ SelectionValue ] ,
2222 formatter: @escaping ( SelectionValue ) -> String = { $0. description } ,
2323 colorer: @escaping ( SelectionValue ) -> Color = { _ in . primary }
You can’t perform that action at this time.
0 commit comments