Update example

This commit is contained in:
Akira 2022-03-13 17:53:25 +09:00
parent 9ba6b54bd2
commit 8fa591fb69
1 changed files with 3 additions and 3 deletions

View File

@ -192,9 +192,9 @@ class ViewController: UIViewController {
Section()
.header(.title("header"))
.rows { section in
for i in 0 ... 5 {
section.append(DefaultRow(title: "\(i)"))
}
section.append(contentsOf: (0 ... 5).map { idx in
DefaultRow(title: "\(idx)")
})
}
.footer(.title("footer"))
.sectionIndexTitle("Header Section")