Same issue for me for my app intents used on WidgetKit. They fail to work on lower iOS versions and throw the error: Could not find an intent with identifier INTENT_NAME, mangledTypeName: Optional("")
Post
Replies
Boosts
Views
Activity
Currently facing the exact issue with WidgetKit failing to fetch calendar events/reminders, were you able to find a solution?
Experienced the same exact issue as Steepz where I had a LazyVGrid holding custom views which some happened to have an additional LazyVGrid. Couldn't find a workaround so I resorted to a UIViewRepresentable holding a CollectionView as it seems there aren't any workarounds at the moment.
I experienced the same issue, and unfortunately, I haven't found a bypass; however, this issue is relatively easy to address by simply down-sizing the images you display on your widgets.
I use a function (attached below) to resize widget images to a width of 800 which I found to be a sweet spot.
extension UIImage {
func resized(toWidth width: CGFloat, isOpaque: Bool = true) -> UIImage? {
let canvas = CGSize(width: width, height: CGFloat(ceil(width/size.width * size.height)))
let format = imageRendererFormat
format.opaque = isOpaque
return UIGraphicsImageRenderer(size: canvas, format: format).image {
_ in draw(in: CGRect(origin: .zero, size: canvas))
}
}
}