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

Show error label in designable view #21

Open
stephsharp opened this issue Jul 15, 2018 · 0 comments
Open

Show error label in designable view #21

stephsharp opened this issue Jul 15, 2018 · 0 comments

Comments

@stephsharp
Copy link
Owner

Currently prepareForInterfaceBuilder hides the error label because I was unable to get it to show up correctly in the storyboard.

Steps to fix:

  1. Currently the error property is of type NSError, but the localized description is the only thing that's used in MFTextField so it could be changed to a string instead.

  2. Making the error an NSString instead of an NSError would allow the property to be made inspectable. The error string could then be set in the storyboard.

  3. prepareForInterfaceBuilder could be updated to not remove the error label anymore and call sharedInit instead.

Considerations:
This would be a breaking change to the API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant