You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for producing this component. I am finding it very useful, but I have a few issues that I hope you can help me resolve.
I have a “page-wide” disabled state that disallows any text field from receiving input unless a specific button is pressed. So upon display of the page, if the user taps on a text field, nothing happens. I do this by using the following code for each textfield on my page:
.disabled(editing ? false : true)
When I use your iPhoneNumberField, I notice a few things.
When I first display the page, the text color is gray. I would prefer for it to be standard label color, so I used the modifiers
but they did not have any initial impact. If I navigate away from the page and them come back to it, the text is the correct label color.
When i tap on the iPhoneNumberField it still gets input (and brings up a number keyboard) even though the field is supposed to be disabled.
if I use the isEditing parameter and set it to my page-wide editing var then when the iPhoneNumberField is tapped, the state of the whole page editing is changed (which I understand)
So the questions I have are as follows:
How can I totally disable the iPhoneNumberField so that it does not allow any input when my editing var is false?
How can I set the text color to always show up in the standard label color?
Thank you for your help on these issues.
The text was updated successfully, but these errors were encountered:
Unfortunately, Apple does not allow accessing the foregroundColor. But you can always customize almost anything in the field by accessing directly the underlying UIView:
Thank you for producing this component. I am finding it very useful, but I have a few issues that I hope you can help me resolve.
I have a “page-wide” disabled state that disallows any text field from receiving input unless a specific button is pressed. So upon display of the page, if the user taps on a text field, nothing happens. I do this by using the following code for each textfield on my page:
When I use your iPhoneNumberField, I notice a few things.
but they did not have any initial impact. If I navigate away from the page and them come back to it, the text is the correct label color.
When i tap on the iPhoneNumberField it still gets input (and brings up a number keyboard) even though the field is supposed to be disabled.
if I use the isEditing parameter and set it to my page-wide editing var then when the iPhoneNumberField is tapped, the state of the whole page editing is changed (which I understand)
So the questions I have are as follows:
How can I totally disable the iPhoneNumberField so that it does not allow any input when my editing var is false?
How can I set the text color to always show up in the standard label color?
Thank you for your help on these issues.
The text was updated successfully, but these errors were encountered: