Costello Costello - 7 months ago 53
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'.


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.