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

Customize textfield #38

Open
sarrathy opened this issue May 6, 2019 · 6 comments
Open

Customize textfield #38

sarrathy opened this issue May 6, 2019 · 6 comments

Comments

@sarrathy
Copy link

sarrathy commented May 6, 2019

Can you help me in how to customize the textfield .

@mats-claassen
Copy link
Member

Have you read through the readme of this project and Eureka's Readme?

What do you want to do? I can't help you if you don't tell me what you want to do.

@sarrathy
Copy link
Author

sarrathy commented May 9, 2019

The textfield that we type for the text for suggestion . i Want to customise it by adding border .
Not the table that shows the suggestion . The static field .

@mats-claassen
Copy link
Member

mats-claassen commented May 10, 2019

Use cellSetup to access the cell's textField and change it as you would do with any UITextField

<<< WhateverRow() { row in
    // ...
}.cellSetup { cell, row in
    cell.textField.layer.borderColor = // ...
    // and so on
}

@sarrathy
Copy link
Author

Is it possible to add my own custom textfield . Like with a image or something . I want to add custom textfield from a nib

@mats-claassen
Copy link
Member

See the second part of this comment, where I describe how to subclass _FieldCell. In your case you want to subclass SuggestionCell, which is a subclass of _FieldCell

@sarrathy
Copy link
Author

Will try that

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

No branches or pull requests

2 participants