bannzai / SpreadsheetView

Full configurable spreadsheet view user interfaces for iOS applications. With this framework, you can easily create complex layouts like schedule, gantt chart or timetable as if you are using Excel.
MIT License
3.52k stars 458 forks source link

Struct data to string #293

Open AMBIENTE1 opened 5 months ago

AMBIENTE1 commented 5 months ago

Hi there, please, If I have data in struct like this:

var ucetPlatby = [struct_ucetPlatby]()

 struct struct_ucetPlatby: Codable {
        let id: Int
        let trasaid: Int
        let cena: Decimal     
        }

//print: [Keshu.UzavreneUcty.struct_ucetPlatby(id: 1, trasaid: 1, cena: 67), Keshu.UzavreneUcty.struct_ucetPlatby(id: 2, trasaid: 2, cena: 134), Keshu.UzavreneUcty.struct_ucetPlatby(id: 3, trasaid: 1, cena: 167.5)]

How can I use them for [[String]]() ??
var data = [[String]]()
cell.label.text = data[indexPath.row - 1][indexPath.column]

Header I have solved.