HomeController
class HomeController : UIViewController
The main controller after the user is signed in
-
The HomeController view
Declaration
Swift
public var homeView: HomeView
-
CaptureCamera
instanceDeclaration
Swift
public var captureCamera: CaptureCamera!
-
Initial Controller load
Declaration
Swift
override func viewDidLoad()
-
viewWillAppear
Declaration
Swift
override func viewWillAppear(_ animated: Bool)
-
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()
-
handle more button
Declaration
Swift
func handleMoreButton()
-
handle profile button
Declaration
Swift
func handleProfileButton()
-
handle taking photo button
Declaration
Swift
func handleTakingPhoto()
-
handle uploading photo
Declaration
Swift
func handleUploadingPhoto()
-
handle image picker
Declaration
Swift
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any])
-
handle camera access tap
Declaration
Swift
func handleCameraAccessTap()