Created
June 14, 2018 14:39
-
-
Save duemunk/8a80d4c3f73e955cef58e56fae873e55 to your computer and use it in GitHub Desktop.
Open Portrait Effects Matte in iOS 12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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