SwiftUI Local Notifications App (Part 1)

0 Просмотры
0:00 Run through of app we are building
0:54 NotificationListView setup
1:16 NotificationManager setup and notifications array
1:58 @StateObject setup
2:15 List setup to display notifications
3:00 Checking status from notification settings
4:35 onAppear
4:49 onChange
6:00 Requesting authorization and handling response
7:56 Reload local notifications
8:56 Add NavigationListView as primary view in a NavigationView

In this video I start to build out a mini app to create, display and delete Local Notifications using SwiftUI. I show a preview of what we will be building and then start on creating a class to handle our interaction with UNNotificationRequests.

I run through how we can ask the user for permission if we detect that the authorization status is undetermined and then how we can emit the status to the view and decide what course of action we need to take when the status changes using an onChange modifier.

Looking for your first iOS job? Try Sean Allen's course with 15% off:

Want to level up your Combine skills? - Practical Combine: An introduction to Combine with real examples by Donny Wals

Want to level up your Core Data skills? - Practical Core Data: A modern guide to the Core Data framework by Donny Wals

Looking to get started with SwiftUI? Get Sean Allen's SwiftUI Fundamentals Course:

Learn SwiftUI on Ray Wenderlich

Learn Combine on Ray Wenderlich

Learn iOS with a subscription on Ray Wenderlich


Приключения онлайн
Комментариев нет.