Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions PasscodeLock/PasscodeLockViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ public class PasscodeLockViewController: UIViewController, PasscodeLockTypeDeleg

private func setupEvents() {

notificationCenter?.addObserver(self, selector: "appWillEnterForegroundHandler:", name: UIApplicationWillEnterForegroundNotification, object: nil)
notificationCenter?.addObserver(self, selector: "appDidEnterBackgroundHandler:", name: UIApplicationDidEnterBackgroundNotification, object: nil)
notificationCenter?.addObserver(self, selector: #selector(PasscodeLockViewController.appWillEnterForegroundHandler(_:)), name: UIApplicationWillEnterForegroundNotification, object: nil)
notificationCenter?.addObserver(self, selector: #selector(PasscodeLockViewController.appDidEnterBackgroundHandler(_:)), name: UIApplicationDidEnterBackgroundNotification, object: nil)
}

private func clearEvents() {
Expand Down Expand Up @@ -154,7 +154,7 @@ public class PasscodeLockViewController: UIViewController, PasscodeLockTypeDeleg
passcodeLock.authenticateWithBiometrics()
}

private func authenticateWithBiometrics() {
public func authenticateWithBiometrics() {

if passcodeConfiguration.shouldRequestTouchIDImmediately && passcodeLock.isTouchIDAllowed {

Expand Down
6 changes: 3 additions & 3 deletions PasscodeLock/Views/PasscodeSignButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class PasscodeSignButton: UIButton {
return CGSizeMake(60, 60)
}

private var defaultBackgroundColor = UIColor.clearColor()
public var defaultBackgroundColor = UIColor.clearColor()

private func setupView() {

Expand All @@ -71,8 +71,8 @@ public class PasscodeSignButton: UIButton {

private func setupActions() {

addTarget(self, action: Selector("handleTouchDown"), forControlEvents: .TouchDown)
addTarget(self, action: Selector("handleTouchUp"), forControlEvents: [.TouchUpInside, .TouchDragOutside, .TouchCancel])
addTarget(self, action: #selector(PasscodeSignButton.handleTouchDown), forControlEvents: .TouchDown)
addTarget(self, action: #selector(PasscodeSignButton.handleTouchUp), forControlEvents: [.TouchUpInside, .TouchDragOutside, .TouchCancel])
}

func handleTouchDown() {
Expand Down