Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Review cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Wes Billman committed Dec 12, 2016
1 parent 96496a6 commit fffe90f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Snail/Extensions/UIButtonExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
public extension UIButton {
public var tap: Observable<Void> {
get {
return controlEvent(.touchUpInside)
return controlEvent(.touchUpInside)
}
}
}
2 changes: 1 addition & 1 deletion Snail/Extensions/UIControlExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public extension UIControl {

public func controlEvent(_ controlEvents: UIControlEvents) -> Observable<Void> {
let observable = Observable<Void>()
objc_setAssociatedObject(self, &UIControl.observableKey, observable, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN_NONATOMIC)
objc_setAssociatedObject(self, &UIControl.observableKey, observable, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
addTarget(self, action: #selector(observableHandler(_:)), for: controlEvents)
return observable
}
Expand Down

0 comments on commit fffe90f

Please sign in to comment.