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

Remove decimal value for Int tweak #83

Merged
merged 3 commits into from Feb 1, 2017

Conversation

sendyhalim
Copy link
Contributor

@sendyhalim sendyhalim commented Dec 23, 2016

Hi this patch includes these:

  • Remove decimal value for Int tweak by using the TweakViewData internal value representation
  • Fix some inconsistencies in test case

Related issue #76

@@ -208,7 +208,7 @@ internal final class TweakTableCell: UITableViewCell {
let doubleValue = viewData.doubleValue!
self.updateStepper(value: doubleValue, stepperValues: viewData.stepperValues!)

textField.text = String(doubleValue)
textField.text = String(describing: viewData.value)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know if it's idiomatic or not, if possible I would propose to implement CustomStringConvertible for TweakViewData so that each of the type have their own UI string representation (I will update the PR if you guys ok with that), for now I'll use this approach.

@bryanjclark
Copy link
Owner

Thanks! I'm looking into this now :D

@bryanjclark
Copy link
Owner

Thanks for tuning up the code inconsistencies, too! :D

@bryanjclark
Copy link
Owner

Closes #76

@bryanjclark bryanjclark merged commit 1421937 into bryanjclark:master Feb 1, 2017
@sendyhalim
Copy link
Contributor Author

You're welcome ! 🍻

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.

None yet

2 participants