sergdort / CleanArchitectureRxSwift

Example of Clean Architecture of iOS app using RxSwift
MIT License
3.91k stars 495 forks source link

Missing argument for parameter #1 in call #42

Open chatarveer opened 6 years ago

chatarveer commented 6 years ago

Class Name Realm+Ext.swift

Line 28 & 46

            observer.onNext()

Error : Missing argument for parameter #1 in call

When you add some param, it says Argument passed to call that takes no arguments

Like Trap in Cycle.

Xcode version Version 9.2 (9C40b) RxSwift 4.0 Swift 4.0

In RxSwift, method declaration is like below. So, how you calling without parameter? public func onNext(_ element: Self.E)

Any suggestion?

sergdort commented 6 years ago

It's possible because of Observer<Void>. I guess you can try observer.onNext(Void())

It's weird that it does not compile to you as I have the same configuration ¯_(ツ)_/¯