Configurable Widget in macOS Big Sur

I am writing a configurable widget for Big Sur under XCode 12.0 beta 5. There's no Intent Configuration available for macOS target. Do I miss something or the functionality hasn't been added?

And suppose if the user choose an option. What's the best way to save the option? The use case is similar to the weather widget. How to save the city name for each instance of widget, and persist after the Mac reboots?
Answered by kevin_funnmedia in 629582022
I am writing a configurable widget for Big Sur under XCode 12.0 beta 5. There's no Intent Configuration available for macOS target. Do I miss something or the functionality hasn't been added?
  • Currently using Xcode 12 beta 6 still not able to configure widget for macOS. Any update for this or any workaround?

And suppose if the user choose an option. What's the best way to save the option?
  • You can pass default value in your (*IntentHandling) Protocol. There is optional method available for custom model in (*IntentHandling) Protocol.

Accepted Answer
I am writing a configurable widget for Big Sur under XCode 12.0 beta 5. There's no Intent Configuration available for macOS target. Do I miss something or the functionality hasn't been added?
  • Currently using Xcode 12 beta 6 still not able to configure widget for macOS. Any update for this or any workaround?

And suppose if the user choose an option. What's the best way to save the option?
  • You can pass default value in your (*IntentHandling) Protocol. There is optional method available for custom model in (*IntentHandling) Protocol.


Currently using Xcode 12 beta 6 still not able to configure widget for macOS.


I'm facing the same issue. Do you think we will get a solution before Big Sur premiere?
Configurable Widget in macOS Big Sur
 
 
Q