diff --git a/Package.swift b/Package.swift index 12fda7e..73ce461 100644 --- a/Package.swift +++ b/Package.swift @@ -26,8 +26,8 @@ let package = Package( .target( name: "MCaptchaView", dependencies: []), - .testTarget( - name: "MCaptchaViewTests", - dependencies: ["MCaptchaView"]), +// .testTarget( +// name: "MCaptchaViewTests", +// dependencies: ["MCaptchaView"]), ] ) diff --git a/Sources/MCaptchaView/MCaptchaView.swift b/Sources/MCaptchaView/MCaptchaView.swift index 6f2bb6e..e38fcc6 100644 --- a/Sources/MCaptchaView/MCaptchaView.swift +++ b/Sources/MCaptchaView/MCaptchaView.swift @@ -6,7 +6,7 @@ import UIKit - class MCaptchaView: UIView { +open class MCaptchaView: UIView { // Verification font code private var _captchaFont: UIFont? @@ -43,7 +43,7 @@ import UIKit updateCaptcha() } - required init?(coder: NSCoder) { + required public init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } @@ -72,7 +72,7 @@ import UIKit } // MARK:- draw - override func draw(_ rect: CGRect) { + open override func draw(_ rect: CGRect) { super.draw(rect) // Background color @@ -129,7 +129,7 @@ import UIKit } // Click to update verification code - override func touchesBegan(_ touches: Set, with event: UIEvent?) { + open override func touchesBegan(_ touches: Set, with event: UIEvent?) { updateCaptcha() } }