From 82fce34c2e72ba13a58a5925a07e7c0d1df7946f Mon Sep 17 00:00:00 2001 From: Max Sokolov Date: Thu, 26 May 2016 02:27:58 +0300 Subject: [PATCH] doing animations --- Tablet/TableBaseRowBuilder.swift | 5 +++++ Tablet/TablePrototypeRowBuilder.swift | 2 +- .../Classes/Presentation/Controllers/MainController.swift | 7 ++++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Tablet/TableBaseRowBuilder.swift b/Tablet/TableBaseRowBuilder.swift index f365fc2..e8b1db0 100644 --- a/Tablet/TableBaseRowBuilder.swift +++ b/Tablet/TableBaseRowBuilder.swift @@ -113,6 +113,11 @@ public class TableBaseRowBuilder, withRowAnimation: <#T##UITableViewRowAnimation#>) + } + public func item(index index: Int) -> DataType { return items[index] } diff --git a/Tablet/TablePrototypeRowBuilder.swift b/Tablet/TablePrototypeRowBuilder.swift index f37d158..a1661bc 100644 --- a/Tablet/TablePrototypeRowBuilder.swift +++ b/Tablet/TablePrototypeRowBuilder.swift @@ -84,8 +84,8 @@ public class TablePrototypeRowBuilder(items: ["1", "1", "1", "1"]) + let rows = TablePrototypeRowBuilder(items: ["1", "1", "1", "1"]) .action(.click) { [unowned self] e in self.performSegueWithIdentifier("headerfooter", sender: nil) } + + let rows2 = TablePrototypeRowBuilder(items: ["1", "1", "1", "1"]) + + rows.remove(index: 0, animated: .None) tableDirector += rows + tableDirector += rows2 } } \ No newline at end of file