SnapChat-Like Camera! (Part 1 : Swift in Xcode)

SnapChat-Like Camera! (Part 1 : Swift in Xcode)

Download Beginning Project Files – https://www.dropbox.com/s/sha6qiskikx1adl/SnapchatCamera%202.zip?dl=0

Final Project Files – https://www.dropbox.com/s/lor69jx10plfoae/SnapchatCamera.zip?dl=0

Like and share! Helps out a ton. 🙂
Subscribe! – http://www.youtube.com/archetapp
Support on Patreon – http://www.patreon.com/archetapp

My Website! – http://www.archetapp.com
Snapchat! – archetapp
Twitter – http://www.twitter.com/archetapp

Thank You Patreon Supporters! :

Frank L Lucisano
Kostya
Jérôme Binachon

Intro Music : Tobu & Itro – Cloud 9
Outro Music : Alan Walker – Fade

Donate (Thank you!) – https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XCX6T4UPC96ES

Donate (Thank you!) – https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XCX6T4UPC96ES



24 Comments

  1. Hey I'm working on this on xcode 8 and here's the code:

    captureSession = AVCaptureSession()
    captureSession?.sessionPreset = AVCaptureSessionPreset1920x1080

    let backCamera = AVCaptureDevice.defaultDevice(withMediaType: AVMediaTypeVideo)

    let error: NSError?

    do {
    let input = try AVCaptureDeviceInput(device: backCamera)

    if (error == nil && captureSession?.canAddInput(input) != nil) {
    captureSession?.addInput(input)

    stillImageOutput = AVCapturePhotoOutput()
    stillImageOutput?.outputSettings = [AVVideoCodecKey : AVVideoCodecJPEG]

    if (captureSession?.canAddOutput(stillImageOutput) != nil) {
    captureSession?.addOutput(stillImageOutput)

    previewLayer = AVCaptureVideoPreviewLayer(session: captureSession)
    previewLayer?.videoGravity = AVLayerVideoGravityResizeAspect
    cameraView.layer.addSublayer(previewLayer!)
    captureSession?.startRunning()

    }
    }

    } catch {

    }

    but there's an error on the line stillImageOutput?.outputSettings = [AVVideoCodecKey : AVVideoCodecJPEG].
    output settings is no longer recognized. Help 🙁

  2. Really nice video. By the way could you upload another snapchat app using swift3.0? Some functions have changed a lot and this camera app cant run in Xcode8. So sad ><

Leave a Reply

Your email address will not be published.