DevLiuSir / SafetyPay

SafetyPay is a security payment password demo.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SafetyPay is a security payment password demo

language swift  4.0 xcode version build platform https://github.com/ChinaHackers/SafetyPay/blob/master/LICENSE Twitter Follow


Safety Pay style

  • Using enumerations to define safetyPayStyle types
/// 安全支付样式
///
/// - ciphertext: 密文
/// - Plaintext: 明文
enum safetyPayStyle {
    /// 密文
    case ciphertext
    /// 明文
    case plaintext
}

Screencast from our Demo

style = .plaintext style = .ciphertext

Example:

import UIKit
class ViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        /*****  SafetyPayView  *****/
        let vi = SafetyPayView(frame: CGRect(x: (view.bounds.width - 300) / 2, y: 200, width: 300, height: 50))
        vi.style = .plaintext
        view.addSubview(vi)
    }
}

About

SafetyPay is a security payment password demo.

License:MIT License


Languages

Language:Swift 100.0%