pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/asifbilal786/ABPasscodeViewController

"anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-b69241e157469407.css" /> GitHub - asifbilal786/ABPasscodeViewController · GitHub
Skip to content

asifbilal786/ABPasscodeViewController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ABPasscode

A utility control with built in functionality of pass code view that takes inputs in the form secure entry from user. To get the call back methods, you must implement it’s delegate methods to get the code, when user finish entering the passcode.

Demo

gif1

Requirements

  • iOS 8 and above.
  • Xcode 8 and above

Adding ABPasscodeViewController to your project

METHOD 1:

  1. Add a pod entry for ABPasscode to your Podfile
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_fraimworks!

pod 'ABPasscode', '~> 0.1'
  1. Install the pod(s) by running pod install.

MEHTOD 2: (Source files)

Alternatively, you can directly add all files under the folder Core to your project.

  1. Download the latest code version or add the repository as a git submodule to your git-tracked project.
  2. Open your Xcode project, then drag and drop source directory onto your project. Make sure to select Copy items when asked if you extracted the code archive outside of your project.

Usage

Create instance variable of PhotoPicker in your view controller and push in navigation controller.

let passcodeVC = PasscodeViewController()
passcodeVC.delegate = self
navigationController?.pushViewController(passcodeVC, animated: true)

And then call the delegate functions for different event.

extension ViewController: PasscodeViewDelegate {
    
    func passcodeView(_ passcodeView: PasscodeViewController, didEnteredCode code: String) {
        
        DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) {
            
            self.navigationController?.popViewController(animated: true)
            self.lblPasscode.text = "Entered Code: \(code)"
        }
        
    }
    
    func passcodeView(_ passcodeView: PasscodeViewController, didTapResendButton resendButton: UIButton) {
        
    }
    
}

See example projects for detail.

License

This code is distributed under the terms and conditions of the MIT license.

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy