Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (18 sloc) 489 Bytes
//
// TableViewModel.swift
// AutoTable
//
// Created by Benji Encz on 4/29/16.
// Copyright © 2016 Benjamin Encz. All rights reserved.
//
import Foundation
struct TableViewModel {
var editingMode: Bool = false
let sections: [TableViewSectionModel]
init(sections: [TableViewSectionModel]) {
self.sections = sections
}
subscript(indexPath: IndexPath) -> TableViewCellModel {
return self.sections[indexPath.section].cells[indexPath.row]
}
}