Make persistentIdentifier iOS only for now.

This commit is contained in:
Maurice Parker 2019-11-26 17:00:13 -06:00
parent 4a9e79cd1e
commit 9de3caf3a0
1 changed files with 2 additions and 0 deletions

View File

@ -31,7 +31,9 @@ class ActivityManager {
}
let activity = NSUserActivity(activityType: ActivityType.restoration.rawValue)
#if os(iOS)
activity.persistentIdentifier = UUID().uuidString
#endif
activity.becomeCurrent()
return activity
}