Skip to content

mokoranyAli/ValifySelfie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

da8d9d0 · Aug 30, 2021

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ValifySelfie

CI Status Version License Platform

This pod for Valify company task, This a framework allows end developer to open camera and make user take selfie picture with spcific terms like only one face should be in camera

Screenshots

300E472C-A3EA-43E5-A983-D0EFD7351FEA 5026D392-BC3E-42AF-A221-1BA84A59047D 69628F0D-58C0-4BC4-BF6F-240042A569FB C2DED783-8006-40B3-A44A-B53D5F6F4006

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Usage

import UIKit
import ValifySelfie

// MARK: - ViewController
//
class ViewController: UIViewController {
  
  // MARK: - IBOutlets
  
  @IBOutlet weak var imageView: UIImageView!
  
  // MARK: - IBActions
  
  @IBAction func showValifyTapped(_ sender: Any) {
    showValify(from: self, with: .present)
  }
}

// MARK: - ValifyDelegate
//
extension ViewController: ValifySelfieDelegate {
  
  func didFinishScan(from viewController: UIViewController, with result: Result<UIImage, Error>) {
    viewController.dismiss(animated: true)
    let image = try? result.get()
    self.imageView.image = image?.withHorizontallyFlippedOrientation()
  }
}

Installation

ValifySelfie is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'ValifySelfie'

Author

mokoranyali, mohammed.korany.ali@gmail.com

License

ValifySelfie is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published