Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save trilliwon/2d39f95f8fe0d5a943421290322111ad to your computer and use it in GitHub Desktop.

Select an option

Save trilliwon/2d39f95f8fe0d5a943421290322111ad to your computer and use it in GitHub Desktop.

Revisions

  1. trilliwon renamed this gist Dec 21, 2019. 1 changed file with 0 additions and 0 deletions.
  2. trilliwon created this gist Dec 21, 2019.
    15 changes: 15 additions & 0 deletions PhotoCapture.swift
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@

    class PhotoCapture {
    // here some stuff for capture image, such as capture session, configurations, photo output
    // More detail : https://github.com/trilliwon/ArtCamera/blob/master/Camera/Controllers/PhotoCapture.swift
    }
    // MARK: - AVCapturePhotoCaptureDelegate
    extension PhotoCapture: AVCapturePhotoCaptureDelegate {
    func photoOutput(_ output: AVCapturePhotoOutput, willCapturePhotoFor resolvedSettings: AVCaptureResolvedPhotoSettings) {
    AudioServicesDisposeSystemSoundID(1108)
    }

    func photoOutput(_ output: AVCapturePhotoOutput, didCapturePhotoFor resolvedSettings: AVCaptureResolvedPhotoSettings) {
    AudioServicesDisposeSystemSoundID(1108)
    }
    }