这是文件 RxRealm.swift 的顶部部分。(文件中的其他地方都没有编译错误,也没有“观察”函数。
//
// RxRealm extensions
//
// Copyright (c) 2016 RxSwiftCommunity. All rights reserved.
// Check the LICENSE file for details
// Created by Marin Todorov
//
import Foundation
import RealmSwift
import RxSwift
public enum RxRealmError: Error {
case objectDeleted
case unknown
}
// MARK: Realm Collections type extensions
/**
`NotificationEmitter` is a protocol to allow for Realm's collections to be handled in a generic way.
All collections already include a `addNotificationBlock(_:)` method - making them conform to …Run Code Online (Sandbox Code Playgroud)