Skip to content

Commit

Permalink
still trying
Browse files Browse the repository at this point in the history
  • Loading branch information
mash3l777 committed Mar 4, 2021
1 parent 457a2ad commit 99552f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ let package = Package(
.target(
name: "MCaptchaView",
dependencies: []),
.testTarget(
name: "MCaptchaViewTests",
dependencies: ["MCaptchaView"]),
// .testTarget(
// name: "MCaptchaViewTests",
// dependencies: ["MCaptchaView"]),
]
)
8 changes: 4 additions & 4 deletions Sources/MCaptchaView/MCaptchaView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import UIKit

class MCaptchaView: UIView {
open class MCaptchaView: UIView {

// Verification font code
private var _captchaFont: UIFont?
Expand Down Expand Up @@ -43,7 +43,7 @@ import UIKit
updateCaptcha()
}

required init?(coder: NSCoder) {
required public init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

Expand Down Expand Up @@ -72,7 +72,7 @@ import UIKit
}

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

// Background color
Expand Down Expand Up @@ -129,7 +129,7 @@ import UIKit
}

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

0 comments on commit 99552f5

Please sign in to comment.