SwiftForms icon indicating copy to clipboard operation
SwiftForms copied to clipboard

multilineText placeholder

Open appsird opened this issue 8 years ago • 1 comments

I attempted to use a placeholder to describe text for multiline, though nothing appears. Would appreciate understanding how I am in error (the below snippet does not reveal the placeholder text):

    let section2 = FormSectionDescriptor(headerTitle: "Description", footerTitle: nil)
    let row3 = FormRowDescriptor(tag: Static.textView, type: .multilineText, title: "")
    row3.configuration.cell.placeholder = "this is a test"
    section2.rows.append(row3)

appsird avatar Feb 12 '18 17:02 appsird

Also tried the following, which crashes:

let section2 = FormSectionDescriptor(headerTitle: "Description", footerTitle: nil)
let row3 = FormRowDescriptor(tag: Static.textView, type: .multilineText, title: "")
row3.configuration.cell.appearance = ["textField.placeholder" : "Touring Category" as AnyObject]
section2.rows.append(row3)

appsird avatar Feb 12 '18 17:02 appsird