Skip to content

Commit 631bdc8

Browse files
committed
Make ResizeablePicker public so Loop app can use it
1 parent d453398 commit 631bdc8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

LoopKitUI/Views/ResizeablePicker.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
import SwiftUI
1010
import 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 }

0 commit comments

Comments
 (0)