It will show overlay as per masked image in camera preview, When You capture image, it show the overlay as is and it returns u a masked image removing the part you didn’t want to capture.
Works with iPad, iPhoneX, iPhone 8Plus, iPhone 8, iPhone SE Works with latest iOS and Xcode
This app requires to access your camera to capture image with mask layer and then afterwards masks image.
Assign maskingImage in ZHCameraViewController.swift class.
override func viewDidLoad() {
super.viewDidLoad()
self.maskingImage = #imageLiteral(resourceName: "Xbox360Mask.png")
// Image Xbox360Mask.png is added in assets
setupView()
}
The maskingImage
I am using is this :
So you can see the results below using just masking image I can capture a masked image
Feel free to use