Skip to content

Commit

Permalink
Fix warnings (#680)
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket authored Sep 20, 2021
1 parent 9c0f666 commit 5359565
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Lock/DatabaseView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import UIKit

protocol DatabaseView: class, View {
protocol DatabaseView: AnyObject, View {
var form: Form? { get }
var secondaryButton: SecondaryButton? { get }
var primaryButton: PrimaryButton? { get }
Expand Down
2 changes: 1 addition & 1 deletion Lock/Form.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import Foundation

protocol Form: class {
protocol Form: AnyObject {
var onValueChange: (InputField) -> Void { get set }
var onReturn: (InputField) -> Void { get set }
var onSubmit: (InputField) -> Bool { get set }
Expand Down
2 changes: 1 addition & 1 deletion Lock/PrimaryButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class PrimaryButton: UIView, Stylable {
}
}

var title: String? = nil {
var title: String? {
didSet {
guard let button = self.button else { return }
self.layout(title: self.title, inButton: button)
Expand Down
2 changes: 1 addition & 1 deletion Lock/Validators.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public class EmailValidator: InputValidator {
}
}

protocol PasswordPolicyValidatorDelegate: class {
protocol PasswordPolicyValidatorDelegate: AnyObject {
func update(withRules rules: [RuleResult])
}

Expand Down
1 change: 1 addition & 0 deletions LockTests/Interactors/DatabaseInteractorSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import UIKit
import Quick
import Nimble
import Auth0
Expand Down

0 comments on commit 5359565

Please sign in to comment.