I am trying to create a Widget with SwiftUI, and I want to use the ".timer" style from Text
but the result of the Text(entry.date, style: .timer)
is something like 15:34:23
But I want the hour and minute part separately.
How can I achieve this?
I tried to get the string value of the text and format it in a method but It seems that there is no way to get Text String like we could do in Swift like someLabel.text
I also have found this question that is similar to mine but I couldn't find any answer there
And I don't want to use this solution either, because it takes a lot longer to load the widgets.
Thanks in advance.