Skip to content

Instantly share code, notes, and snippets.

View vicjohnson's full-sized avatar

Victor Johnson vicjohnson

View GitHub Profile
@juliensagot
juliensagot / ValuePicker.swift
Last active August 21, 2025 06:29
Custom SwiftUI Picker
import SwiftUI
public struct ValuePicker<SelectionValue: Hashable, Content: View>: View {
private let title: LocalizedStringKey
private let selection: Binding<SelectionValue>
private let content: Content
public init(
_ title: LocalizedStringKey,
selection: Binding<SelectionValue>,