This commit is contained in:
2024-04-30 07:08:23 +02:00
commit a711247971
2043 changed files with 16874 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
# -*- mode: snippet -*-
# name: uitableViewDataSource
# key: uitableViewDataSource
# --
// MARK: UITableViewDataSource
func numberOfSections(in tableView: UITableView) -> Int {
return $1
}
func tableView(_ tableView: UITableView,
numberOfRowsInSection section: Int) -> Int {
return $2
}
func tableView(_ tableView: UITableView,
cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: $3,
for: indexPath)
configureCell(cell: cell, forRowAt: indexPath)
return cell
}
func configureCell(cell: UITableViewCell, forRowAt indexPath: IndexPath) {
}