I was recently trying to follow through with one of apple’s develop in swift books.
One of the exercises is about state restoration using ns user activity .
after finishing the entire exercise none of my additional code worked
I think it could be because of not entering the correct value when initializing
the user activity.
this is my initialization of the user activity
var userActivity = NSUserActivity(activityType: "com.example.Restaurant.order")
should the string I pass into the initializer be something specific or it could just be a random string?