Use for WidgetKit introduced in iOS 14 and macOS Catalyst 14
Questions tagged [widgetkit]
520 questions
0
votes
2 answers
iOS 14 Widget Deep Link to React-Native app failing
I have an iOS14 widget that I want to deep link to a screen in my (React-Native) app.
I've set up the deep link on the app side and I can open the desired screen from safari when testing.
example link: myapp://detail/123
AppDelegate.m is set up like…

scgough
- 5,099
- 3
- 30
- 48
0
votes
1 answer
How to open Safari directly from Widget in SwiftUI?
I have a link written in SwiftUI inside Widget View like this:
Link("Visit Apple",
destination: URL(string: "https://www.apple.com")!)
.font(.caption)
.foregroundColor(.red)
But now, I…

Bartłomiej Semańczyk
- 59,234
- 49
- 233
- 358
0
votes
1 answer
I can't retrieve the xcdatamodeld data from the app on the widgetKit extension
Hello I can't retrieve the xcdatamodeld data from my app on the widgetKit extension.
Yet I added the appGroup for both.check my models and the xcdatamodeld file for both .
my class coreData :
public class CoreDataStackT4U {
static let shared =…

m pierre
- 23
- 5
0
votes
0 answers
Are NCWidgetProviding widgets supported on iOS 14
NCWidgetProviding based widgets have been deprecated in favor of Apple's newer WidgetKit framework but usually when an API is deprecated there is still some transition period. However my NCWidgetProviding based widget won't show in the widgets list…

gop
- 2,150
- 5
- 26
- 54
0
votes
1 answer
iOS 14 Widgets with greater configuration capabilities
I want to add more advanced configuration options to my iOS 14 Widgets. This is what I've been working with:
struct WidgetConfig {
let id: UUID
let name: String
let backgroundColor: Color?
let backgroundImage: Data?
let…

milan.elsen
- 13
- 6
0
votes
0 answers
How to use @FetchRequest data in Provider struct in iOS 14 Widget
I'm currently developing an application using SwiftUI.
I'm trying to develop a timer App using Core Data and iOS 14 Widget.
I want to display 00:00 when the value of duration in Core Data is 0.0 in the widget.
So I refer to this article SwiftUI iOS…

Tio
- 944
- 3
- 15
- 35
0
votes
0 answers
Pass data entered in a UIView to a Widget
I try to implement a simple pattern on Widgets:
get a textField in the app;
have the Widget updated when textField is changed.
App is UIKit (not SwiftUI).
I've read here that I could pass it through UserDefaults,
How to pass uiviewcontroller data…

claude31
- 874
- 6
- 8
0
votes
1 answer
Does app widget extension need a separate provision profile?
Does app widget extension need a separate provision profile ?
When I add an Widget extension(if I want to manager the code sign manually in Xcode), do I need to create a new provision profile beside the app's provision profile…

JerryZhou
- 4,566
- 3
- 37
- 60
0
votes
0 answers
Widget ios 14 not updating daily
I have a simple widget that needs to be updated daily, however many of the users have complained that their widget doesn't update daily.
What am doing wrong here?
func getTimeline(in context: Context, completion: @escaping (Timeline)…

Mona
- 5,939
- 3
- 28
- 33
0
votes
1 answer
iOS Widget provision profile issue: how to correct distribute with iOS WidgetKit
How to correct setting up profile stuff for iOS Widget ?
First, I select auto checkbox, but distribute app steps get some error. so I try with manual setting to figure out what's going wrong as bellow:
If I not select a profile for iOS Widget…

JerryZhou
- 4,566
- 3
- 37
- 60
0
votes
3 answers
The operation couldn’t be completed. (CHSErrorDomain error 1300.)
I'm trying to preview my widget I've made in Xcode, and I'm getting the following error:
RemoteHumanReadableError
ProcessError: Failed to launch widget extension: The operation couldn’t be completed. (CHSErrorDomain error 1300.)
I can't find…

Lemon
- 1,184
- 11
- 33
0
votes
0 answers
AppGroup and Widget extension
I have a barcode generator app where you generate barcode and you can add to the related widget.
When you add to the widget, I want to add image and text.
For image is ok but I have problem with text under the image
I have a File Manager swift file…

aker10
- 11
- 1
0
votes
1 answer
Make a Big Sur widget with Mac Catalyst app?
My app is iOS 13+ and Mac Catalyst ("scaled").
Minimum deployment is set to iOS 13.6 and macOS 10.15.6.
The iOS 14 version of the app has a widget.
I want to either use this same widget in macOS 11 Big Sur, or create a new one for Mac with identical…

Butterfly Ball
- 142
- 13
0
votes
1 answer
Can I determine the order of the widgets in the gallery (Swift)?
The order of the widgets in the gallery seems to me arbitrary. Is there a way to arrange the WidgetExtensions in a certain order with Xcode or in Swift?
In my case I do have several targets where I have created different widgets.

MosTwanTedT
- 323
- 3
- 12
0
votes
0 answers
WidgetKit: Refresh data based on a certain time?
Is it possible to dynamically update a Widget / show a View based on a specific time?
For example, something like that the following code:
func getTimeline(for configuration: ConfigurationIntent, in context: Context, completion: @escaping…

P. Lemelle
- 41
- 1
- 3