intuit / CardParts

A reactive, card-based UI framework built on UIKit for iOS developers.
Other
2.52k stars 224 forks source link

[help wanted] Example doesn't build #120

Closed gboyals closed 5 years ago

gboyals commented 5 years ago

Hi there,

First of all, I'd like to point out that I'm still a noob in Swift development and I struggled installing this Pod but existant issues here helped me until now.

I try to make the first example in the readme work in a very simple workspace, but the two lines above give me an error :

viewModel.title.asObservable().bind(to: titlePart.reactive.title).disposed(by: bag)
viewModel.text.asObservable().bind(to: textPart.reactive.text).disposed(by: bag)

The errors:

Value of type 'CardPartTextView' has no member 'reactive'.
Value of type 'CardPartTitleView' has no member 'reactive'.

Xcode : 10.1 (10B61) Swift: 4.2 Target deployment: iOS 11

Is there anyone having the same issue ?

Thanks in advance for your help :)

thunpisit commented 5 years ago

I currently have the same issues https://github.com/intuit/CardParts/issues/117 The closest answer that I found on Github is this one https://github.com/ReactiveCocoa/ReactiveSwift/issues/212 but I don't think its helping I tried.

croossin commented 5 years ago

@Slethael @thunpisit We will take a look at these right now. Stand by

croossin commented 5 years ago

@Slethael Thanks to @thunpisit we found that we had a little type in our README! Instead of .reactive. it should have been .rx.. We have gone ahead and updated the README and it should be correct now. Thanks again.

croossin commented 5 years ago

Fixed by version 2.7.5.