Skip to content

Instantly share code, notes, and snippets.

@sgr-ksmt
Last active March 3, 2016 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgr-ksmt/6c72421ea98b4b0e657c to your computer and use it in GitHub Desktop.
Save sgr-ksmt/6c72421ea98b4b0e657c to your computer and use it in GitHub Desktop.
rx_reachedBottom??
import RxSwift
import RxCocoa
public extension UIScrollView {
public var rx_reachedBottom: Observable<Bool> {
return rx_contentOffset.map { $0.y == (self.contentSize.height - self.frame.height) }
}
}
@sgr-ksmt
Copy link
Author

sgr-ksmt commented Mar 3, 2016

wrong... Right here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment