CreateAPI / NaiveDate

Naive date and time
MIT License
32 stars 5 forks source link

SwiftUI `Text.init(_ date: NaiveDate, style: Text.DateStyle)` utility #1

Open robmaceachern opened 2 years ago

robmaceachern commented 2 years ago

Thanks for the helpful library. I discovered it as part of Create API and it's wonderful!

I was wondering if you'd be interested in adding a SwiftUI Text.init(_ date: NaiveDate, style: Text.DateStyle) utility, in the same style as Text.init(_ date: Date, style: Text.DateStyle).

I think it'd be helpful (I was reaching for it today) but I'm not sure if it'd be a fit as part of this package.

kean commented 2 years ago

Yes, NaiveDate has some convenience localizable strings formatting. I don't mind adding it. PRs are welcome.