I shared a (still great) tip last week about using ViewThatFits to show as much of a date as possible.
It will actually cause a crash if your language is set to German.
The problem is the weekday is the same for abbreviated and short, which causes some duplicates. That's a problem since they're used in a ForEach that is using self for an id.
[#]SwiftUI
=> More informations about this toot | More toots from MuseumShuffle@mastodon.social
@MuseumShuffle could you place the strings in a set, then use that in a ForEach that emits Text views, rather than the Text views directly? This should unique them regardless of the locale.
=> More informations about this toot | More toots from brunoph@breakpoint.cafe
@brunoph I like that idea, but wouldn't the order be lost?
I was planning on putting each entry in a struct with a UUID id.
=> More informations about this toot | More toots from MuseumShuffle@mastodon.social
@MuseumShuffle then sort by length, which will give you an array
=> More informations about this toot | More toots from brunoph@breakpoint.cafe
@brunoph Bruno have I ever told you that you're a genius?
=> More informations about this toot | More toots from MuseumShuffle@mastodon.social This content has been proxied by September (3851b).Proxy Information
text/gemini