bannzai / bannzai/SpreadsheetView

Struct data to string

Open
#293 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
3.5k
Forks
476
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.