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
4 changes: 2 additions & 2 deletions Xcode/Closures/Source/Core.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@

import Foundation

protocol DelegateProtocol: class {
protocol DelegateProtocol: AnyObject {
}

@available(iOS 9.0, *)
public protocol DelegatorProtocol: class {
public protocol DelegatorProtocol: AnyObject {
/**
Clears any delegates/datasources that were assigned by the `Closures`
framework for this object. This cleans up memory as well as sets the
Expand Down
2 changes: 1 addition & 1 deletion Xcode/Closures/Source/UIControl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ extension UITextField {
* returns: itself so you can daisy chain the other event handler calls
*/
@discardableResult
public func onReturn(handler: @escaping () -> Void) -> Self {
public func onReturnKeyPress(handler: @escaping () -> Void) -> Self {
on(.editingDidEndOnExit) { _,_ in
handler()
}
Expand Down