Make persistentIdentifier iOS only for now.
This commit is contained in:
parent
4a9e79cd1e
commit
9de3caf3a0
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue