Skip to content

Commit f05511c

Browse files
authored
Merge pull request #79 from maxsokolov/bugfixes-and-improvements
Bugfixes and improvements
2 parents d8ae329 + de5593f commit f05511c

13 files changed

+74
-92
lines changed
Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
1-
//
2-
// AppDelegate.swift
3-
// TabletDemo
4-
//
5-
// Created by Max Sokolov on 08/11/15.
6-
// Copyright © 2015 Tablet. All rights reserved.
7-
//
8-
91
import UIKit
102

113
@UIApplicationMain
124
class AppDelegate: UIResponder, UIApplicationDelegate {
135

146
var window: UIWindow?
15-
}
7+
}

Demo/Classes/Presentation/Controllers/AutolayoutCellsController.swift

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
//
2-
// AutolayoutCellsController.swift
3-
// TableKitDemo
4-
//
5-
// Created by Max Sokolov on 18/06/16.
6-
// Copyright © 2016 Tablet. All rights reserved.
7-
//
8-
91
import UIKit
102
import TableKit
113

@@ -56,6 +48,15 @@ class AutolayoutCellsController: UIViewController {
5648
}
5749

5850
tableDirector += section
51+
52+
navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Clear", style: .done, target: self, action: #selector(clear))
53+
}
54+
55+
@objc
56+
func clear() {
57+
58+
tableDirector.clear()
59+
tableDirector.reload()
5960
}
6061

6162
func getViewHeight(view: UIView, width: CGFloat) -> CGFloat {

Demo/Classes/Presentation/Controllers/MainController.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
//
2-
// MainController.swift
3-
// TabletDemo
4-
//
5-
// Created by Max Sokolov on 16/04/16.
6-
// Copyright © 2016 Tablet. All rights reserved.
7-
//
8-
91
import UIKit
102
import TableKit
113

Demo/Classes/Presentation/Controllers/NibCellsController.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
//
2-
// NibCellsController.swift
3-
// TableKitDemo
4-
//
5-
// Created by Max Sokolov on 18/06/16.
6-
// Copyright © 2016 Tablet. All rights reserved.
7-
//
8-
91
import UIKit
102
import TableKit
113

Demo/Classes/Presentation/Views/AutolayoutSectionHeaderView.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
//
2-
// AutolayoutSectionHeaderView.swift
3-
// TableKitDemo
4-
//
5-
// Created by Max on 13/12/2017.
6-
// Copyright © 2017 Tablet. All rights reserved.
7-
//
8-
91
import UIKit
102

113
final class AutolayoutSectionHeaderView: UIView {

Demo/Classes/Presentation/Views/AutolayoutTableViewCell.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
//
2-
// AutolayoutTableViewCell.swift
3-
// TabletDemo
4-
//
5-
// Created by Max Sokolov on 24/05/16.
6-
// Copyright © 2016 Tablet. All rights reserved.
7-
//
8-
91
import UIKit
102
import TableKit
113

Demo/Classes/Presentation/Views/ConfigurableTableViewCell.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
//
2-
// ConfigurableTableViewCell.swift
3-
// TableKitDemo
4-
//
5-
// Created by Max Sokolov on 18/06/16.
6-
// Copyright © 2016 Tablet. All rights reserved.
7-
//
8-
91
import UIKit
102
import TableKit
113

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
//
2-
// NibTableViewCell.swift
3-
// TableKitDemo
4-
//
5-
// Created by Max Sokolov on 18/06/16.
6-
// Copyright © 2016 Tablet. All rights reserved.
7-
//
8-
91
import UIKit
102
import TableKit
113

@@ -20,4 +12,4 @@ class NibTableViewCell: UITableViewCell, ConfigurableCell {
2012
func configure(with number: Int) {
2113
titleLabel.text = "\(number)"
2214
}
23-
}
15+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<a href="https://travis-ci.org/maxsokolov/TableKit"><img src="https://api.travis-ci.org/maxsokolov/TableKit.svg" alt="Build Status" /></a>
55
<a href="https://developer.apple.com/swift"><img src="https://img.shields.io/badge/Swift_4.0-compatible-4BC51D.svg?style=flat" alt="Swift 4.0 compatible" /></a>
66
<a href="https://github.com/Carthage/Carthage"><img src="https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat" alt="Carthage compatible" /></a>
7-
<a href="https://cocoapods.org/pods/tablekit"><img src="https://img.shields.io/badge/pod-2.5.0-blue.svg" alt="CocoaPods compatible" /></a>
7+
<a href="https://cocoapods.org/pods/tablekit"><img src="https://img.shields.io/badge/pod-2.6.0-blue.svg" alt="CocoaPods compatible" /></a>
88
<img src="https://img.shields.io/badge/platform-iOS-blue.svg?style=flat" alt="Platform iOS" />
99
<a href="https://raw.githubusercontent.com/maxsokolov/tablekit/master/LICENSE"><img src="http://img.shields.io/badge/license-MIT-blue.svg?style=flat" alt="License: MIT" /></a>
1010
</p>

Sources/TableCellRegisterer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class TableCellRegisterer {
4848
// in that case we could register nib
4949
if let _ = bundle.path(forResource: reuseIdentifier, ofType: "nib") {
5050
tableView?.register(UINib(nibName: reuseIdentifier, bundle: bundle), forCellReuseIdentifier: reuseIdentifier)
51-
// otherwise, register cell class
51+
// otherwise, register cell class
5252
} else {
5353
tableView?.register(cellType, forCellReuseIdentifier: reuseIdentifier)
5454
}

0 commit comments

Comments
 (0)