From ffac9fae14cbf71036ea42a0c556ca110cacb6a9 Mon Sep 17 00:00:00 2001 From: Max Sokolov Date: Sun, 19 Jun 2016 12:35:12 +0300 Subject: [PATCH] add insert section method --- Sources/TableDirector.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Sources/TableDirector.swift b/Sources/TableDirector.swift index 5c1021c..26564a9 100644 --- a/Sources/TableDirector.swift +++ b/Sources/TableDirector.swift @@ -229,6 +229,12 @@ public class TableDirector: NSObject, UITableViewDataSource, UITableViewDelegate return self } + public func insert(section section: TableSection, atIndex index: Int) -> Self { + + sections.insert(section, atIndex: index) + return self + } + public func clear() -> Self { sections.removeAll()