Why I can't use index from FromEach as index for other array. This index is Int, so what's the problem?
var word: String{
return slova[selector]
}
var symbols: Array<Character>{
return [Character](word)
}
var body: some View {
HStack{
ForEach(0..<word.count-1){index in
Button("\(symbols[index])") {
}
}
}
}
result: bug in "Button("(symbols[index])") {" :Instance method 'appendInterpolation' requires that 'Character' conform to '_FormatSpecifiable'
String.initinstead of interpolation, so ReplaceButton("(symbols[index])")withButton(String(self.symbols[index]))