UserDefaults: How to read and write data for WidgetKit
I am revisiting one my apps which I use WidgetKit, it worked fine in it’s implementation however when running for iOS 17 with Xcode 15 the data no longer reads/writes from user defaults.
Placeholder for IOS Widget is displayed on Home Screen
I have been using my SwiftUI app for a while and noticed that my widget started showing the placeholder instead of the actual widget in random times. For the placeholder widget I used template data and it isn’t meant to be displayed on the home screen. The comments left by the WidgetKit extension template stated that I shouldn’t do fetch requests in the placeholders, so I didn’t.