Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed rex_text bindable property to be an optional string #133

Conversation

dmcrodrigues
Copy link
Contributor

Fixes #125, #129.

Discussion

This no longer relies on KVC, I think this promotes code consistency since other properties are not using it either. It also helps avoiding a battle with a weakly typed system where everything needs to be AnyObject.

@@ -24,6 +24,7 @@ class UITableViewCellTests: XCTestCase {
label.rex_text <~
titleProperty
.producer
.map(Optional.init) // TODO: Remove in the future, binding with optionals will be available soon in RAC
.takeUntil(cell.rex_prepareForReuse)
Copy link
Member

@RuiAAPeres RuiAAPeres Jul 4, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a reference to this ("will be available soon")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done! I also update the test to include this behaviour.

@RuiAAPeres
Copy link
Member

👍

@RuiAAPeres RuiAAPeres merged commit 0a1927d into RACCommunity:master Jul 5, 2016
@dmcrodrigues dmcrodrigues deleted the dr/make-uilabel-text-property-an-optional-string branch July 7, 2016 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants