Skip to content

Commit

Permalink
Add missing method description
Browse files Browse the repository at this point in the history
  • Loading branch information
sergdort committed Jul 10, 2017
1 parent b318040 commit 4f3d803
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions RxCocoa/iOS/UIPickerView+Rx.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,17 @@
return ControlEvent(events: source)
}

/**
Binds sequences of elements to picker view rows using a custom reactive adapter used to perform the transformation.
This method will retain the adapter for as long as the subscription isn't disposed (result `Disposable`
being disposed).
In case `source` observable sequence terminates successfully, the adapter will present latest element
until the subscription isn't disposed.

- parameter adapter: Adapter used to transform elements to picker components.
- parameter source: Observable sequence of items.
- returns: Disposable object that can be used to unbind.
*/
public func items<O: ObservableType,
Adapter: RxPickerViewDataSourceType & UIPickerViewDataSource & UIPickerViewDelegate>(adapter: Adapter)
-> (_ source: O)
Expand Down

0 comments on commit 4f3d803

Please sign in to comment.