Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom camera in iOS like Snapchat

How does Snapchat make a custom UI for the camera, and how do they put a blur over it? I tried to accomplish the blur by putting a BlurView on top of the ImageView that I make into the camera with UIImagePicker, in

override func viewWillAppear(bool {
super.viewWillAppear(true)
'UIImagePicker logic'
}

But the imagepicker is not working until I remove the BlurView from the super view

CustomUI Blur

like image 498
Mahmud Ahmad Avatar asked Feb 14 '26 06:02

Mahmud Ahmad


1 Answers

UIImagePicker will not work in this situation. Have to use AVFoundation and CALayer. This allows me to make a custom camera with a custom UI, and custom functionality. See this tutorial for basic introduction

like image 70
Mahmud Ahmad Avatar answered Feb 15 '26 20:02

Mahmud Ahmad



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!