TokenRow icon indicating copy to clipboard operation
TokenRow copied to clipboard

Can't see full list of options in tokenView

Open Smiller193 opened this issue 6 years ago • 3 comments

For some reason when I display the tokens. I can't see the full list and if i dismiss the keyboard to try and see them the tokens disappear as well. Also how do you control the size of the imageview, it is way to big in the tokentablecell

Smiller193 avatar Oct 15 '18 17:10 Smiller193

Hi @Smiller193, I saw the issue you opened in Eureka. From what you mentioned there you can do a few things to get this working.

First, when using the TokenTableRow it is important to scroll the row up to make the tableView with options visible. You can do this with the following code (or similar) in onCellHighlightChanged:

.onCellHighlightChanged({ [weak self] (cell, row) in
            if row.isHighlighted {
                DispatchQueue.main.async {
                    self?.tableView.scrollToRow(at: row.indexPath!, at: .top, animated: true)
                }
            }
        })

You also mentioned the imageView is too big. For this you can change the cell that is used for the options. This is explained in the Readme section. (I am just seeing that that section is copied from the TokenAccessoryRow, but it should be very similar for the table)

mats-claassen avatar Oct 18 '18 13:10 mats-claassen

@mats-claassen Thank you what i was thinking was just create a table view cell that conforms to the proper protocol (EurekaTokenTableViewCell) and register that instead of just the plain old tableviewcell that is present in the tokenRow?

Smiller193 avatar Oct 18 '18 15:10 Smiller193

I haven't tried that but you could possibly just register that cell in cellSetup yes.

mats-claassen avatar Oct 19 '18 12:10 mats-claassen