Skip to content

Commit

Permalink
Supporting optional selections in picker view
Browse files Browse the repository at this point in the history
  • Loading branch information
kamaal111 committed Jan 1, 2024
1 parent c3057a0 commit ee694b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/KamaalUI/Views/KTitledPicker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
import SwiftUI

public struct KTitledPicker<Item: Hashable, PickerItemView: View>: View {
@Binding var selection: Item
@Binding var selection: Item?

let title: String
let items: [Item]
let pickerItemView: (_ item: Item) -> PickerItemView

public init(
selection: Binding<Item>,
selection: Binding<Item?>,
title: String,
items: [Item],
@ViewBuilder pickerItemView: @escaping (_ item: Item) -> PickerItemView
Expand Down

0 comments on commit ee694b5

Please sign in to comment.