Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
mash3l777 committed Mar 4, 2021
1 parent 66ffb0b commit 5a2b010
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Sources/MCaptchaView/MCaptchaView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

import UIKit

open class MCaptchaView: UIView {
public class MCaptchaView: UIView {

// Verification font code
private var _captchaFont: UIFont?
var _captchaFont: UIFont?
var captchaFont: UIFont? {
get {
_captchaFont
Expand All @@ -21,13 +21,13 @@ open class MCaptchaView: UIView {
}

// MARK:-Verification code
private(set) var captcha: String?
var captcha: String?

// Verification code update block
var captchaCompletionBlock: ((_ captcha: String?) -> Void)?
private var codeList: [AnyHashable]?

override init(frame: CGRect) {
public override init(frame: CGRect) {
super.init(frame: frame)

// Background color
Expand Down Expand Up @@ -72,7 +72,7 @@ open class MCaptchaView: UIView {
}

// MARK:- draw
open override func draw(_ rect: CGRect) {
public override func draw(_ rect: CGRect) {
super.draw(rect)

// Background color
Expand Down Expand Up @@ -129,7 +129,7 @@ open class MCaptchaView: UIView {
}

// Click to update verification code
open override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
public override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
updateCaptcha()
}
}

0 comments on commit 5a2b010

Please sign in to comment.