rx-swift

    4熱度

    1回答

    誰能告訴我如何設置牆壁碰撞機?我已經使用牆壁的OBJ文件設置了一個房間。非常感謝。

    0熱度

    1回答

    當用戶點擊一個按鈕時,我會顯示一個選擇屏幕。結果被傳遞到我的視圖模型。代碼如下所示: locationButton.rx.tap .flatMapLatest(wireframe.displayPlaceSelection) .filterNil() .map(DiscoverLocationSelection.location) .subs

    0熱度

    1回答

    RxCocoa版本3.6.1未能在Xcode 9建立與錯誤消息: Initializer 'init(parentObject:)' with Objective-C selector 'initWithParentObject:' conflicts with initializer 'init(parentObject:)' from superclass 'RxScrollViewDeleg

    0熱度

    1回答

    我有以下代碼: let categoriesRequest = APIService.MappableRequest(Category.self, resource: .categories) let categoriesRequestResult = api.subscribeArrayRequest(categoriesRequest, from: actionRequest, dispos

    0熱度

    1回答

    下面的代碼工作: let provider = RxMoyaProvider<MyAPI>(stubClosure: MoyaProvider.delayedStub(3)) provider .request(.studentSearch(query: "")) .retry(3) .observeOn(MainScheduler.instance

    0熱度

    1回答

    考慮以下兩個變量: let int = Variable<Int>(1) let string = Variable<String>("hey!") 我們假設他們都綁定到其他UI已經,如: int.asObservable.bind(to:variable1) string.asObservable.bind(to:variable2) 我怎樣才能確保int.asObservable

    0熱度

    1回答

    給定一個Service對象,我想確保每個對該服務的函數調用都不會產生副作用。在我的情況下,無論函數A在做什麼,除非調度器可用,否則什麼都不會在函數B中執行。 這裏是這個樣子: class Service { func handleJobA(input: String) -> Observable<String> { return Observable.just(input)

    1熱度

    1回答

    我使用的是ReSwift和RxSwift(沒有這些信息,這個問題沒有多大意義)。 在ReSwift中有沒有一種標準的派發動作創建器的方法,並且在完成處理後發生了一些事情(即,完成處理動作和可能發生在動作創建器內部的所有內部請求)? 我知道要實現這一目標的一種方法: func myActionCreator(_ callback:() -> Void) -> (state: AppState, st

    -1熱度

    1回答

    extension URLSession { fileprivate func loadRepositories(resource: URL) -> Observable<SearchRepositoriesResponse> { return self .rx.response(request: URLRequest(url: resource))

    1熱度

    2回答

    我有一個MapViewModel用於我的MapViewController。 我有一個MapObjectService與函數fetchMapObjects(currentLocation: CLLocation)返回一個Observable<MapObjects> 在MapViewModel我: var currentLocation: Observable<CLLocation?> var m