Costello Costello - 1 year ago 78
Swift Question

Use of unresolved type MutableProperty

I am trying to declare a property in view model that i will later bind to a view..

class LoginViewModel {

let myProperty = MutableProperty("")//error here undeclared type MutableProperty


I am using ReactiveCocoa '5.0.0-alpha.3'.

Answer Source

Since ReactiveCocoa was split into ReactiveCocoa and ReactiveSwift, you'll probably need to import @import ReactiveSwift in your file as well as @import ReactiveCocoa

Also, if you're adding ReactiveCocoa via Carthage, dont forget to also add the ReactiveSwift.framework to your Project.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download