From a5f8a5813a0f382b87cfebf396d1c8d7edaa1621 Mon Sep 17 00:00:00 2001 From: Igor Kislyuk Date: Tue, 14 Nov 2017 16:13:05 +0300 Subject: [PATCH] PR fix --- touchin-cell/touchin-cell.rambaspec | 15 --------------- .../TableCell}/cell.swift.liquid | 12 ------------ .../TableCell}/cellViewModel.swift.liquid | 0 .../TableCell}/view.xib.liquid | 0 touchin-tablecell/touchin-tablecell.rambaspec | 15 +++++++++++++++ 5 files changed, 15 insertions(+), 27 deletions(-) delete mode 100644 touchin-cell/touchin-cell.rambaspec rename {touchin-cell/Cell => touchin-tablecell/TableCell}/cell.swift.liquid (71%) rename {touchin-cell/Cell => touchin-tablecell/TableCell}/cellViewModel.swift.liquid (100%) rename {touchin-cell/Cell => touchin-tablecell/TableCell}/view.xib.liquid (100%) create mode 100644 touchin-tablecell/touchin-tablecell.rambaspec diff --git a/touchin-cell/touchin-cell.rambaspec b/touchin-cell/touchin-cell.rambaspec deleted file mode 100644 index 47979b6..0000000 --- a/touchin-cell/touchin-cell.rambaspec +++ /dev/null @@ -1,15 +0,0 @@ -# Template information section -name: "touchin-cell" -summary: "Swift UITableViewCell for TableKit using in Touch Instinct" -author: "Igor Kislyuk" -version: "0.1.0" -license: "MIT" - -# The declarations for code files - -code_files: - -# cell -- {name: UITableViewCell.swift, path: Cell/cell.swift.liquid, custom_name: "{{module_info.name}}.swift"} -- {name: CellViewModel.swift, path: Cell/cellViewModel.swift.liquid, custom_name: "{{module_info.name}}ViewModel.swift"} -- {name: UITableViewCell.xib, path: Cell/view.xib.liquid, custom_name: "{{module_info.name}}.xib"} diff --git a/touchin-cell/Cell/cell.swift.liquid b/touchin-tablecell/TableCell/cell.swift.liquid similarity index 71% rename from touchin-cell/Cell/cell.swift.liquid rename to touchin-tablecell/TableCell/cell.swift.liquid index a7a8ff7..4db9976 100644 --- a/touchin-cell/Cell/cell.swift.liquid +++ b/touchin-tablecell/TableCell/cell.swift.liquid @@ -8,22 +8,10 @@ final class {{ module_info.name }}: UITableViewCell, ConfigurableCell { fileprivate var disposeBag = DisposeBag() - override func awakeFromNib() { - super.awakeFromNib() - - clear() - } - override func prepareForReuse() { super.prepareForReuse() - clear() - } - - private func clear() { disposeBag = DisposeBag() - - // clear other elements } func configure(with viewModel: {{ module_info.name }}ViewModel) { diff --git a/touchin-cell/Cell/cellViewModel.swift.liquid b/touchin-tablecell/TableCell/cellViewModel.swift.liquid similarity index 100% rename from touchin-cell/Cell/cellViewModel.swift.liquid rename to touchin-tablecell/TableCell/cellViewModel.swift.liquid diff --git a/touchin-cell/Cell/view.xib.liquid b/touchin-tablecell/TableCell/view.xib.liquid similarity index 100% rename from touchin-cell/Cell/view.xib.liquid rename to touchin-tablecell/TableCell/view.xib.liquid diff --git a/touchin-tablecell/touchin-tablecell.rambaspec b/touchin-tablecell/touchin-tablecell.rambaspec new file mode 100644 index 0000000..851cda9 --- /dev/null +++ b/touchin-tablecell/touchin-tablecell.rambaspec @@ -0,0 +1,15 @@ +# Template information section +name: "touchin-tablecell" +summary: "Swift UITableViewCell for TableKit using in Touch Instinct" +author: "Igor Kislyuk" +version: "0.1.0" +license: "MIT" + +# The declarations for code files + +code_files: + +# cell +- {name: UITableViewCell.swift, path: TableCell/cell.swift.liquid, custom_name: "{{module_info.name}}.swift"} +- {name: CellViewModel.swift, path: TableCell/cellViewModel.swift.liquid, custom_name: "{{module_info.name}}ViewModel.swift"} +- {name: UITableViewCell.xib, path: TableCell/view.xib.liquid, custom_name: "{{module_info.name}}.xib"}