Skip to content

Instantly share code, notes, and snippets.

@duemunk
Created June 14, 2018 14:39
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 duemunk/8a80d4c3f73e955cef58e56fae873e55 to your computer and use it in GitHub Desktop.
Save duemunk/8a80d4c3f73e955cef58e56fae873e55 to your computer and use it in GitHub Desktop.
Open Portrait Effects Matte in iOS 12
let data = try Data(contentsOf: fileUrl)
let portraitMatteImage = CIImage(data: data, options: [.auxiliaryPortraitEffectsMatte: true])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment