Skip to content

Instantly share code, notes, and snippets.

@tbatsuur
Created October 16, 2018 04:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbatsuur/45e2a6d829103b3ab2e3dd065ecf14f4 to your computer and use it in GitHub Desktop.
Save tbatsuur/45e2a6d829103b3ab2e3dd065ecf14f4 to your computer and use it in GitHub Desktop.
private func loadImage() -> UIImage? {
// 1
let manager = PHImageManager.default()
// 2
let fetchResult: PHFetchResult = PHAsset.fetchAssets(with: .image, options: fetchOptions())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment