startWith
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
let disposeBag = DisposeBag()
Observable.of("🐶", "🐱", "🐭", "🐹")
.startWith("1")
.startWith("2")
.startWith("3", "🅰️", "🅱️")
.subscribe(onNext: { print($0) })
.disposed(by: disposeBag)3
🅰️
🅱️
2
1
🐶
🐱
🐭
🐹