Skip to content
This repository was archived by the owner on Apr 19, 2021. It is now read-only.

Picker format #187

@corbrink

Description

@corbrink

I'm configuring the picker with array values like this:

`row = FormRowDescriptor(tag: Static.picker, rowType: .Picker, title: "Value")
row.configuration[FormRowDescriptor.Configuration.Options] = array.count
row.configuration[FormRowDescriptor.Configuration.TitleFormatterClosure] = { value in

var stringArray = String
for index in 0...self.array.count {
// append index with cast it to string
stringArray.append(String(index))
}
return stringArray
} as TitleFormatterClosure`

however I get an error
"Cannot convert return expression of type '[String]' to return type 'String!'" Why does this happen?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions