-
Notifications
You must be signed in to change notification settings - Fork 543
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
Customize errorMessage position #271
Conversation
Allow for error label to be displayed below the text field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👌
What do you think @k0nserv? |
Actually, the new public/open vars are missing documentation blocks as comments. |
The |
} else { | ||
textAlignment = .right | ||
titleLabel.textAlignment = .right | ||
titleLabel.textAlignment = .right |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copy paste error, you meant to paste in errorLabel
here.
Is this necessary? |
Issues addressed and branch updated. |
It is necessary. If a user of this class changes the |
Fixed and pushed. |
…dded unit tests, adjust syntax to be consistent with project
Assorted adjustments to better fit SkyFloatingLabelTextField style
Hey 👋 I am a bit concerned about feature creep. There's more and more PRs that add custom variations and I am concerned that all these variants will decrease maintainability and increase the risk of introducing bugs. Because of this I'd ask if we can consider whether this can be implemented as a subclass rather than a variant |
Hi. We did consider implementing this as a subclass, but that would require us to refactor a lot of our existing code that uses the current class. That’s why we decided to include the feature in the class itself and not subclass. Also, when we considered adding this feature through subclassing, we found out the some of the properties and methods are private, which doesn't allow us to override them. |
any update on this? |
Yeap, indeed guys, are these commits going to join the main branch? :) |
@k0nserv and @jaredegan can we approve this PR to master? I understand the manutenability concern but the unit tests can help us to keep code working. Besides that, this specific feature is not that complex, it is about the error message position. |
I am not an official maintainer. |
Since there seems to be a signficant number of people who are interested in this feature we should probably merge it. @rethink-eder can you add this behaviour to the example app please? |
…properties" test screen
@k0nserv I just committed a change in the screen "Setting text properties". We added a switch that will change the errorMessage position. |
+1 |
Hi @k0nserv did you have the opportunity to check the last commit with the screen example of this new property? |
Hi @k0nserv . Would you approve this PR? |
+1 |
Any update on this? |
Hey people :) |
Hi @k0nserv. Are we ready for approve this PR? |
1 similar comment
Hi @k0nserv. Are we ready for approve this PR? |
The build is failing atm so that needs to be fixed at the very least |
Hi @k0nserv. The issue is now fixed. We merged from master and fixed the errors. Build is now working. Can you approve this PR? |
@@ -1,6 +1,8 @@ | |||
language: objective-c | |||
xcode_project: SkyFloatingLabelTextField/SkyFloatingLabelTextField.xcodeproj | |||
xcode_scheme: SkyFloatingLabelTextField | |||
before_install: | |||
- gem install bundler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed? It should be handled by Travis already I believe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is because bundler is out to date in some of virtual machines. As here, for example: https://drive.google.com/file/d/10s3ZcLZz4kbYsNdCIdaQagPY1NqH9jcG/view?usp=sharing
Direct Link: https://travis-ci.org/Skyscanner/SkyFloatingLabelTextField/builds/626728997
The error message would be this one: https://drive.google.com/file/d/1IP429lcqvnJO-2vsPYJolQHbOeTVaar7/view?usp=sharing
Error messages can be set above or below textfield