Widget Timeline Policy or Text structure

Hi,

I am a iOS application developer, and have some question while I was developing an application with a widget that displays the remaining time in seconds(over 10,000 hours).

It was easy to implement in the iOS application because the Timer functionality is available in the onApear() method of the Text structure(https://developer.apple.com/documentation/swiftui/text). However, this could not be used in the widget system due to the Apple Timeline Reload Policy(https://developer.apple.com/documentation/widgetkit/timelinereloadpolicy).

Among the Timeline Reload Policies used in widgets, there is syntax error. if I use the “after policy” but it was impossible to reload it every second, and it was possible to reload every second for about 5 minutes in the dynamically allocated reload cycle if I use the “atEnd policy”. I guess it is because I have exceeded a daily budget allocated to the widget.

Here are three questions.

  1. Do you guys have plans to change the Timeline Reload Policy??
  2. If not, I would like to know the source code of the Text structure. Would it be possible for me to check the source code? Would you please help me out how to do it?
  3. If you cannot answer the second question, would it be possible to create the Text structure and use it in an application or widget? If so, please share any references with me so I can refer to! It would be greatly appreciated!
Widget Timeline Policy or Text structure
 
 
Q