From 5a2b01043aed7710ccfe9aa202a2f378411195c4 Mon Sep 17 00:00:00 2001 From: Mashal Date: Thu, 4 Mar 2021 12:54:57 +0400 Subject: [PATCH] .. --- Sources/MCaptchaView/MCaptchaView.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Sources/MCaptchaView/MCaptchaView.swift b/Sources/MCaptchaView/MCaptchaView.swift index 108287d..62688c1 100644 --- a/Sources/MCaptchaView/MCaptchaView.swift +++ b/Sources/MCaptchaView/MCaptchaView.swift @@ -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 @@ -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 @@ -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 @@ -129,7 +129,7 @@ open class MCaptchaView: UIView { } // Click to update verification code - open override func touchesBegan(_ touches: Set, with event: UIEvent?) { + public override func touchesBegan(_ touches: Set, with event: UIEvent?) { updateCaptcha() } }