HomeController

class HomeController : UIViewController

The main controller after the user is signed in

  • AVCapturePhotoCaptureDelegate delegate function

    Declaration

    Swift

    func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?)
  • Pass the taken photo to the next controller

    Declaration

    Swift

    public func process(imageData: Data)
  • UIGestureRecognizerDelegate delegate to handle swip left Check if the user is anonymous or not

    Declaration

    Swift

    @objc
    func handleSwipeToProfile(sender: UISwipeGestureRecognizer)
  • Navigate to profile controller

    Declaration

    Swift

    func navigateToProfile()