1

When writing iOS 14 widget, it is easy to pass Strings and other types from app to widgets using @AppStorage:

@AppStorage("text", store: UserDefaults(suiteName: "…")) var text: String = "Hello World"

But how do you pass big data like images to widget? Do you need to use database or shared file storage?

pawello2222
  • 46,897
  • 22
  • 145
  • 209
Lim Thye Chean
  • 8,704
  • 9
  • 49
  • 88

0 Answers0