Post

Replies

Boosts

Views

Created

Updating a value with local notification action
Hi everyone, I am trying to update the "repeatNumber" value that I created in a struct. struct ItemModel: Identifiable, Codable  {     let id: String     let title: String     let detail: String     let isCompleted: Bool     let repeatNumber: Int // <--- } I have a class named ListViewModel that conforms NSObject, ObservableObject, UNUserNotificationCenterDelegate. In this class I have userNotificationCenter "didReceive" function to control notification action responses but I could not reach and change the repeatNumber value. I hope you guys help me and I will be appreciated. Thanks.
1
0
552
Sep ’22
Updating a value with local notification action
Hi everyone, I am trying to update the "repeatNumber" value that I created in a struct. struct ItemModel: Identifiable, Codable  {     let id: String     let title: String     let detail: String     let isCompleted: Bool     let repeatNumber: Int // <--- } I have a class named ListViewModel that conforms NSObject, ObservableObject, UNUserNotificationCenterDelegate. In this class I have userNotificationCenter "didReceive" function to control notification action responses but I could not reach and change the repeatNumber value. I hope you guys help me and I will be appreciated. Thanks.
Replies
1
Boosts
0
Views
552
Activity
Sep ’22
Alice Messages Exercise
I stuck on the exercise at the page of 18 at unit "Arrays and Loops". I feel the exercise directs me to use while loop but I did not find a way to do that. Thanks for the help by now.
Replies
2
Boosts
0
Views
526
Activity
Nov ’21