How to build an iOS Streaks App and Widget

How to build an iOS Streaks App and Widget

17.837 Lượt nghe
How to build an iOS Streaks App and Widget
In this video, you’ll learn how I built a streaks app with a complimentary iOS widget and how I kept the data in sync using App Groups. You’ll also learn about iOS widgets and how they work. 👋 Our "Launch Your First App" program will help you build up your iOS skills to publish your very own feature rich app even if you’re a beginner starting from scratch. https://cwc.to/youtubeoffer Links and references from the video: - CWC+: https://codewithchris.com/plus - Timeline Provider: https://developer.apple.com/documentation/widgetkit/timelineprovider - AppIntents:https://developer.apple.com/documentation/appintents/providing-your-app-s-capabilities-to-system-services - Keeping a widget up to date: https://developer.apple.com/documentation/widgetkit/keeping-a-widget-up-to-date - @KavSoft Circular Progress Ring: https://www.youtube.com/watch?v=Uaa9sgDhbxc Steps: 00:56 Start the Xcode project 01:21 Add the counter and button 03:26 Build the progress ring 08:53 Style the text and background 12:02 Add a widget extension 13:53 Walkthrough of the Widget code 25:33 Set up an App Group 29:49 Set up the DataService in the Widget 31:35 Build the Widget UI 38:07 Manually update the widget from the app 39:37 Add an app intent to the project