mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Make persistentIdentifier iOS only for now.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user