From aaa67fe5e466d21b5056de23c9e6ee0535e52563 Mon Sep 17 00:00:00 2001 From: Annie Gupta Date: Thu, 11 Apr 2024 10:22:32 +0530 Subject: [PATCH] Fixed Issue #2569 - Deprecated code warnings in playground Filtering_and_Conditional_Operators.xcplaygroundpage (#2573) Fixed Issue #2569 - Deprecated code warnings in playground Filtering_and_Conditional_Operators.xcplaygroundpage --- .../Contents.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rx.playground/Pages/Filtering_and_Conditional_Operators.xcplaygroundpage/Contents.swift b/Rx.playground/Pages/Filtering_and_Conditional_Operators.xcplaygroundpage/Contents.swift index 74acd164f..10ca13f67 100644 --- a/Rx.playground/Pages/Filtering_and_Conditional_Operators.xcplaygroundpage/Contents.swift +++ b/Rx.playground/Pages/Filtering_and_Conditional_Operators.xcplaygroundpage/Contents.swift @@ -195,7 +195,7 @@ example("skipWhileWithIndex") { Observable.of("🐱", "🐰", "🐶", "🐸", "🐷", "🐵") .enumerated() - .skipWhile { $0.index < 3 } + .skip(while: { $0.index < 3 }) .map { $0.element } .subscribe(onNext: { print($0) }) .disposed(by: disposeBag) @@ -213,7 +213,7 @@ example("skipUntil") { let referenceSequence = PublishSubject() sourceSequence - .skipUntil(referenceSequence) + .skip(until: referenceSequence) .subscribe(onNext: { print($0) }) .disposed(by: disposeBag)