You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.
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?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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?
The text was updated successfully, but these errors were encountered: