Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Observable namespace for Swift5.9/XCode15 conflict #202

Merged
merged 5 commits into from
Oct 29, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Sources/RxRealm/RxRealm.swift
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ public extension Observable {
- parameter realm: A Realm instance
- returns: `Observable<(Realm, Realm.Notification)>`, which you can subscribe to
*/
static func from(realm: Realm) -> Observable<(Realm, Realm.Notification)> {
return Observable<(Realm, Realm.Notification)>.create { observer in
static func from(realm: Realm) -> RxSwift.Observable<(Realm, Realm.Notification)> {
return RxSwift.Observable<(Realm, Realm.Notification)>.create { observer in
let token = realm.observe { (notification: Realm.Notification, realm: Realm) in
observer.onNext((realm, notification))
}
Expand Down Expand Up @@ -512,7 +512,7 @@ public extension Observable where Element: Object {

static func from(object: Element, emitInitialValue: Bool = true,
properties: [String]? = nil) -> Observable<Element> {
return Observable<Element>.create { observer in
return RxSwift.Observable<Element>.create { observer in
if emitInitialValue {
observer.onNext(object)
}
Expand Down Expand Up @@ -546,7 +546,7 @@ public extension Observable where Element: Object {
*/

static func propertyChanges(object: Element) -> Observable<PropertyChange> {
return Observable<PropertyChange>.create { observer in
return RxSwift.Observable<PropertyChange>.create { observer in
let token = object.observe { change in
switch change {
case let .change(_, changes):
Expand Down
Loading