0

I wanted to create widget for my app. I have used api to display data in my app. But I don't understand how to display the same data in widget. The classes/structs are not in scope. How to get around it?

pawello2222
  • 46,897
  • 22
  • 145
  • 209
Muskan Arora
  • 56
  • 11
  • Does this answer your question? [Share data between main App and Widget in SwiftUI for iOS 14](https://stackoverflow.com/questions/63922032/share-data-between-main-app-and-widget-in-swiftui-for-ios-14) – pawello2222 Nov 18 '20 at 09:07
  • *"The classes/structs are not in scope"* - you can add the relevant files to the widget extension target. – pawello2222 Nov 18 '20 at 09:07

0 Answers0