Swiftpack.co - mash3l777/MCaptchaView as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by mash3l777.
mash3l777/MCaptchaView 1.0.5
Offline Captcha for iOS & iPad.
⭐️ 0
🕓 3 years ago
iOS
.package(url: "https://github.com/mash3l777/MCaptchaView.git", from: "1.0.5")

MCaptchaView

Swift Package Manager GitHub Workflow Status CodeFactor

GitHub code size in bytes Lines of code

Offline Captcha for iOS & iPad.

Example:

myCaptcha = MCaptchaView(frame: viewCaptcha.frame)
myCaptcha.captchaFont = UIFont.boldSystemFont(ofSize: 30)
myCaptcha.captchaCompletionBlock = { captcha in
    print("captcha is:\(captcha ?? "")")
}
viewCaptcha.clearsContextBeforeDrawing = true
viewCaptcha.addSubview(myCaptcha)

Provide a case-insensitive comparison method:

let isMatch = txtCode.text!.caseInsensitiveCompare(myCaptcha.captcha) == .orderedSame
if isMatch {
    print("The verification code is entered correctly!!");
} else {
    print("incorrect verification code!!");
}

GitHub

link
Stars: 0
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

all good 😃
3 years ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics