Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
687 B

4 years ago
  1. # -*- mode: snippet -*-
  2. # name: uitableViewDataSource
  3. # key: uitableViewDataSource
  4. # --
  5. // MARK: UITableViewDataSource
  6. func numberOfSections(in tableView: UITableView) -> Int {
  7. return $1
  8. }
  9. func tableView(_ tableView: UITableView,
  10. numberOfRowsInSection section: Int) -> Int {
  11. return $2
  12. }
  13. func tableView(_ tableView: UITableView,
  14. cellForRowAt indexPath: IndexPath) -> UITableViewCell {
  15. let cell = tableView.dequeueReusableCell(withIdentifier: $3,
  16. for: indexPath)
  17. configureCell(cell: cell, forRowAt: indexPath)
  18. return cell
  19. }
  20. func configureCell(cell: UITableViewCell, forRowAt indexPath: IndexPath) {
  21. }