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

Picker format #187

Open
corbrink opened this issue Sep 3, 2019 · 0 comments
Open

Picker format #187

corbrink opened this issue Sep 3, 2019 · 0 comments

Comments

@corbrink
Copy link

corbrink commented Sep 3, 2019

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant