ortuman / SwiftForms

A small and lightweight library written in Swift that allows you to easily create forms.
MIT License
1.33k stars 209 forks source link

multilineText placeholder #173

Open appsird opened 6 years ago

appsird commented 6 years ago

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 commented 6 years ago

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)