I’ve created a text field editing func to reset corner radius and border color. I’ve seven text fields in my project. Now I want to call this function for all text fields with short code.
This is how I’ve written my code:
textField1.editFunc()
textField2.editFunc()
textField3.editFunc()
textField4.editFunc()
textField5.editFunc()
textField6.editFunc()
textField7.editFunc()
2
Answers
You can try
OR
OR
Create outlet collection and link all textfields to it
Then
Use a custom textfield class to customise:
Usage: