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
Post
Replies
Boosts
Views
Activity
So what is the minimum timeline should we set? is 1 hour OK?
Hi, how to make the widget background to be blur like battery widget?
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?
I also have exact problem. How to fix this?
I'm also want to know how to format the date like this
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..
I tried timer and relative, they get updated automatically.
But the date or time isn't.
Maybe it's not updated at all. Quite a vague document
Same issue, how to fix it
I also get a lot of this issues.
It seems like my timeline get called multiple times and it just crashes
Mine too, how to fixx it Apple?
Try clicking button 3 times then it works!!! thanks so much
Me too
Same error here
@seriyvolk83 you helped me much, that's correct.