Skip to content

Instantly share code, notes, and snippets.

View alperenarc's full-sized avatar
💻
I may be slow to respond.

Alperen Arıcı alperenarc

💻
I may be slow to respond.
View GitHub Profile
@AlexanderZ-aFrogleap
AlexanderZ-aFrogleap / SectionedTableViewAdapter.swift
Created October 15, 2016 20:12
Generic UITableView adapter with sections
//: Playground - noun: a place where people can play
import UIKit
protocol SectionModel {
var count: Int { get }
func cell(at: Int) -> UITableViewCell
func selected(at: Int)
}