Skip to content

Commit e178f47

Browse files
committed
Update UIScrollView.reachedBottom docs
1 parent 9e3970d commit e178f47

File tree

2 files changed

+14
-1
lines changed
  • Playground/RxSwiftExtPlayground.playground/Pages/UIScrollView.reachedBottom.xcplaygroundpage

2 files changed

+14
-1
lines changed

Playground/RxSwiftExtPlayground.playground/Pages/UIScrollView.reachedBottom.xcplaygroundpage/Contents.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import UIKit
1818
/*:
1919
## reachedBottom
2020

21-
The `reachedBottom` operator provides a sequence that emits every time the `UIScrollView` is scrolled to the bottom.
21+
`reachedBottom` provides a sequence that emits every time the `UIScrollView` is scrolled to the bottom, with an optional offset.
2222

2323
Please open the Assistant Editor (⌘⌥⏎) to see the Interactive Live View example.
2424
*/

Readme.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ Read below for details about each operator.
8989
RxSwift/RxCocoa Reactive Extensions are provided to enhance existing objects and classes from the Apple-ecosystem with Reactive abilities.
9090

9191
* [UIViewPropertyAnimator.animate](#uiviewpropertyanimatoranimate)
92+
* [UIScrollView.reachedBottom](#uiscrollviewreachedbottom)
9293

9394
--------
9495

@@ -639,11 +640,23 @@ button.rx.tap
639640
```
640641

641642
#### UIViewPropertyAnimator.fractionComplete
643+
642644
The `fractionComplete` binder provides a reactive way to bind to `UIViewPropertyAnimator.fractionComplete`.
645+
643646
```swift
644647
slider.rx.value.map(CGFloat.init)
645648
.bind(to: animator.rx.fractionComplete)
646649
```
650+
651+
#### UIScrollView.reachedBottom
652+
653+
`reachedBottom` provides a sequence that emits every time the `UIScrollView` is scrolled to the bottom, with an optional offset.
654+
655+
```swift
656+
tableView.rx.reachedBottom(offset: 40)
657+
.subscribe { print("Reached bottom") }
658+
```
659+
647660
## License
648661

649662
This library belongs to _RxSwift Community_.

0 commit comments

Comments
 (0)