Configurable Widgets with AppIntents
HTML-код
- Опубликовано: 13 окт 2024
- This video covers how the AppIntent framework can be used to create configurable widgets (edit widget). You can define everything in code and just use the new AppIntentConfiguration with WidgetKit.
🚀 LaunchBuddy: apple.co/3iFcjjW
📚 Try CWC+: bit.ly/cwc_flo
☕️ Buy me a coffee: ko-fi.com/flow...
👋 Links: flowritesco.de
🛠 Forge: apple.co/3riG8MQ
Affiliate Links ❤
📕 SwiftUI & Combine Books: www.bigmountai...
🔬 Get Reports about your apps: appfigures.com...
📊 Privacy focused analytics: dashboard.tele...
💻 The most powerful mac app for developers: devutils.app/?...
☕️ Support me: ko-fi.com/flow...
If you have any video suggestions please feel free to let me know by a comment.
Get in contact via
Twitter: / flowritescode
Thank you! This was very helpful
Thank you Flo! I learned so much from your videos over the past years. Would it be possible to make a video (or a sample code) on how to get the configuration options from core data? I have been trying to get it to work for weeks but I just can't figure it out.
Thank you! To get you started, you could watch my CoreData + WidgetKit video. It shows you exactly the setup you need to read CoreData content in your Widgets. Hope it helps! ruclips.net/video/FV_3kiRF90g/видео.html
Again great Video! Now I've got my first widget running! Thanks, Flo!
👌
Thank you Flo for all your videos! Any suggestion how to localize the selection values? (red = rot, blue = blau, etc.)
I'm actually not sure about that, sorry! Perhaps it's just LocalizedStringKey instead of String? Have you tried the standard localization setup?
I use the new localization methods, but theses selection values are not automatically imported. I added them manually, but that didn't do it. Using the LocalizedStringKey the code does no longer compile.
Awesome tutorial! Is there a way to get current location of user when interacting with widget? e.g. on button press
Hey, I've been following your widget kit videos and I'm kind of trying to copy the Lapse app behavior in which they are bringing the user straight to wallpaper settings to set up their app's widget. It will be great if anyone could help me with it. Thanks!
Can I display the configuration values in a List (UITableView) in a separate sheet view instead of MenuPickerStyle?
I don't think you can change the UI, no. That happens automatically on a system-level.
So we don’t need intenttimelineprovider if we use this ?
As mentioned in the video, you need AppIntentTimelineProvider if you're using AppIntents.
Can you please share this github repo link
Is all of this iOS 17 only?
Unfortunately yes.
@@FloWritesCode I was about to try this but AppIntentTimelineProvider is still beta so I can't. Guess I have to wait!
github link?