You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, it's safer to set imageManager below as an optional,
fileprivate let imageManager = PHCachingImageManager()
and only assign it after we check for Photo library access status. I have seen some crashes (might be in iOS9 only) when that isn't done, and the user hasn't determined the status yet; imageManager is initialized correctly, but if the user denies access, it might cause a crash.
The text was updated successfully, but these errors were encountered:
So, it's safer to set imageManager below as an optional,
fileprivate let imageManager = PHCachingImageManager()
and only assign it after we check for Photo library access status. I have seen some crashes (might be in iOS9 only) when that isn't done, and the user hasn't determined the status yet; imageManager is initialized correctly, but if the user denies access, it might cause a crash.
The text was updated successfully, but these errors were encountered: