Skip to content

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

Description

@robmaceachern

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.

Activity

  1. kean commented on Jan 25, 2022

    @kean
    Member

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

  2. lvalenta commented on Sep 12, 2024

    @lvalenta
    Contributor

    I implemented it here: #6 – however, we can only make Text.init(_ date: NaiveDate, format: NaiveDate.FormatStyle). Looking forward for the feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions