Photos Framework 的 ALAssetsGroupPropertyPersistentID 等价物是什么

What is the equivalent of ALAssetsGroupPropertyPersistentID for Photos Framework

由于 ALAssetsGroup 在 Photos Framework 上被 PHAssetCollection 取代,即使用户重命名,我如何才能唯一标识资产集合(相册)?我在 PhotoKit 出现之前使用 ALAssetsGroupPropertyPersistentID

每个 PHCollection 都是 PHObject 的子类,PHObject 有一个 属性 localIdentifier,它永远不会为集合改变。