Swiftpack.co -  Package - mash3l777/MCaptchaView
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
mash3l777/MCaptchaView
Offline Captcha for iOS & iPad.
.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 weeks ago

Release Notes

all good 😃
5 weeks ago

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