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. cwc.to/youtube...
Links and references from the video:
- CWC+: codewithchris....
- Timeline Provider: developer.appl...
- AppIntents:developer.appl...
- Keeping a widget up to date: developer.appl...
- @KavSoft Circular Progress Ring: • SwiftUI 3.0 Apple Bed ...
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
Негізгі бет How to build an iOS Streaks App and Widget
Пікірлер: 23