A Swift UI component for Lunar Calendar Picker

LunarYearDatePicker

a Swift UI component for Lunar Calendar Picker

Usage:

struct ContentView: View {

    @State var date = Date()

    var body: some View {
        VStack(alignment: .leading) {
            LunarDatePicker($date)
                .pickerStyle(MenuPickerStyle())

            DatePicker("國曆出生",
                       selection: $date,
                       displayedComponents: [.date])


        }.padding()
    }
}

a Date Picker with a Converter between Solar & Lunar Calendar

GitHub

View Github