Creating iOS Widgets with WidgetKit and SwiftUI: A Step-by-Step Tutorial

preview_player
Показать описание
In this video, you will learn how widgets work internally in iOS and how you can create your own widget with different sizes through WidgetKit.

0:56 - How do widgets work in the system?
2:51 - Widgets aren't mini apps
3:30 - Quotes App review
3:48 - Widget's default configuration
8:10 - Quote's widget implementation
13:43 - Fixing sizes
15:00 - Adding deep linking
16:57 - Summary

Other videos that may interest you:

Don't forget to subscribe to the channel, like it, and follow me on social media:

Credits:
- Video edited with LumaFusion

My Contact:
Рекомендации по теме
Комментарии
Автор

the "Source code showed in the video" part, thank you so much

zakk
Автор

really cool and helpful video, thanks, dude!!!

thelostpatrick
Автор

I have a widget using the the widgetkit framework. The widget have refresh button. I want to show a loading indicator when the user tap in the refresh button. How to do that?

RonilloAng
Автор

Hello Pitt, can a TimelineProvider class take as a parameter some @Binding and make use of that when creating entries in the getSnapshot() function? My goal here would be to be able to change the widget UI based on some external dependencies.

chestermang
Автор

Nice video! Is there a way to add button to widgets in home screen? I would like to update UserDefault storage when click in a button

lucasribolli
Автор

Widget getTimeLine not called on second install of app
1. Add widget.
2. Uninstall app.
3. Reinstall app.
4. Add widget.
Widget seems to be cached on previous install, please help me to solve it. Thanks a lot!

vietsublyrics
Автор

Hi Pitt, videos are very helpful. Thanks for posting the videos .
I have a doubt, How to achieve Auto Resizable TextView in SwiftUI

aravindvishnus
Автор

Hi.Awesome video!!My application is already made with Swift but i would like to create some widgets.Could you make a tutorial in order to create a Widget by using UiViewRepresentable, please?

Neo-lugp
Автор

It'd be great if you could caption your videos. Your accent isn't very intelligible. Thanks

DrN
join shbcf.ru