In side widget View, I have this code. I tried to run it on iOS 14 device.
Text(Date(), style: .time)
.lineLimit(1)
.minimumScaleFactor(0.3)
.font(.system(size: 45))
It shows the time, but the time does not get updated realtime like the Apple document said in 'Display Dynamic Dates' sections.
Please help, Apple developer team..
Post
Replies
Boosts
Views
Activity
I'm also want to know how to format the date like this
I also have exact problem. How to fix this?
my Widget still now showing in widget selection list, even in xcode 12-beta 3.
If I create new project, it shows.
What's difference?
Hi, how to make the widget background to be blur like battery widget?
So what is the minimum timeline should we set? is 1 hour OK?
You should not use onAppear or onDisappear with Widgetkit because widget is much like a pre-built image.
Just prepare all necessary data in Widget Entry then show it for each timeline