SuggestionRow icon indicating copy to clipboard operation
SuggestionRow copied to clipboard

Customize textfield

Open sarrathy opened this issue 6 years ago • 6 comments

Can you help me in how to customize the textfield .

sarrathy avatar May 06 '19 08:05 sarrathy

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.

mats-claassen avatar May 08 '19 12:05 mats-claassen

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 .

sarrathy avatar May 09 '19 00:05 sarrathy

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
}

mats-claassen avatar May 10 '19 13:05 mats-claassen

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

sarrathy avatar May 15 '19 03:05 sarrathy

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

mats-claassen avatar May 15 '19 12:05 mats-claassen

Will try that

sarrathy avatar May 16 '19 05:05 sarrathy