Skip to content

Commit

Permalink
Introduce a RxObservable typealias to workaround SE-0395 conflict
Browse files Browse the repository at this point in the history
In Swift 5.9 / Xcode 15 beta 2, Apple introduced a re-export of its own protocol
called Observable, under the Observation framework.

This protocol conflicts with RxSwift.Observable, which causes projects to fail compilation.

As a workaround, this PR introduces a new RxObservable typealias which can be used instead
of the Observable symbol where relevant (See #2532 for a quick find-and-replace to assist)
  • Loading branch information
freak4pc committed Jul 7, 2023
1 parent 95917a5 commit 2ff073f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RxSwift/Observable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
/// A type-erased `ObservableType`.
///
/// It represents a push style sequence.

public typealias RxObservable<Element> = RxSwift.Observable<Element>

public class Observable<Element> : ObservableType {
init() {
#if TRACE_RESOURCES
Expand Down

0 comments on commit 2ff073f

Please sign in to comment.