Skip to content

Setting keyboardType #47

@primeviltom

Description

@primeviltom

Hi there,

I'm having an issue setting the keyboard type when using a TextRow contained within a splitRow..

For example, the keyboard type in the following is not being observed:

        <<< SplitRow<TextRow, TextRow>() {
            $0.tag = "SplitAddressLine2"
            $0.rowLeftPercentage = 0.7
            $0.hidden = true
            $0.rowLeft = TextRow() {
                $0.placeholder = "Town" //Working
                $0.tag = "town"
            }
            
            $0.rowRight = TextRow() {
                $0.tag = "postcode"
                $0.cell.textField.keyboardType = .numberPad //Not working
                $0.placeholder = "Postcode" //Is working
            }.cellSetup {cell, row in
                cell.textField.keyboardType = .numberPad //Also Not working
            }
        }

The placeholder text is being set correctly, but the keyboard type is not.
Where in a basic TextRow, outside of a SplitRow, the keyboard type is being set correctly. e.g.

                <<< TextRow() { row in
                    row.placeholder = "TEST"
                    row.cell.textField.keyboardType = .numberPad //Works
                }

How can I get the TextRow to show the correct keyboardType?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions