From 520c43341c72cc2aa9c4afdc9e661c672fa51fe7 Mon Sep 17 00:00:00 2001 From: Srdan Rasic Date: Thu, 2 May 2019 21:03:48 +0200 Subject: [PATCH] Add unwrap deprecation --- Sources/Deprecations.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Sources/Deprecations.swift b/Sources/Deprecations.swift index 3d41c30..01bcd16 100644 --- a/Sources/Deprecations.swift +++ b/Sources/Deprecations.swift @@ -127,3 +127,11 @@ extension SignalProtocol where Element: Equatable { return distinctUntilChanged() } } + +extension SignalProtocol where Element: Sequence { + + @available(*, deprecated, renamed: "flattenElements") + public func unwrap() -> Signal { + return flattenElements() + } +}