Skip to content

DevLiuSir/SafetyPay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages