Skip to content

Commit

Permalink
Version 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Shine Labs committed Oct 3, 2020
1 parent 5adcde3 commit 4fd782e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion TableViewLiaison.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'TableViewLiaison'
s.version = '2.0.0'
s.version = '2.0.1'
s.summary = 'Framework to help you better manage UITableViews.'
s.description = 'TableViewLiaison abstracts and simplifies UITableView construction and management.'
s.homepage = 'https://github.com/dylanshine/TableViewLiaison'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,23 @@ extension TableViewLiaison {
rows.forEach(register(row:))
}

func register<T: UITableViewCell>(_ type: T.Type, with identifier: String) {
public func register<T: UITableViewCell>(_ type: T.Type, with identifier: String) {
tableView?.register(T.self, forCellReuseIdentifier: identifier)
}

func register<T: UITableViewHeaderFooterView>(_ type: T.Type, with identifier: String) {
public func register<T: UITableViewHeaderFooterView>(_ type: T.Type, with identifier: String) {
tableView?.register(T.self, forHeaderFooterViewReuseIdentifier: identifier)
}

func registerCell(nib: UINib, with identifier: String) {
public func registerCell(nib: UINib, with identifier: String) {
tableView?.register(nib, forCellReuseIdentifier: identifier)
}

func registerHeaderFooterView(nib: UINib, with identifier: String) {
public func registerHeaderFooterView(nib: UINib, with identifier: String) {
tableView?.register(nib, forHeaderFooterViewReuseIdentifier: identifier)
}

func dequeue<T: UITableViewCell>(_ type: T.Type, with identifier: String) -> T {
public func dequeue<T: UITableViewCell>(_ type: T.Type, with identifier: String) -> T {

guard let tableView = tableView else {
fatalError("TableViewLiaison must be liased with UITableView before dequeuing cell of type \(T.self)")
Expand All @@ -60,7 +60,7 @@ extension TableViewLiaison {
return cell
}

func dequeue<T: UITableViewHeaderFooterView>(_ type: T.Type, with identifier: String) -> T {
public func dequeue<T: UITableViewHeaderFooterView>(_ type: T.Type, with identifier: String) -> T {

guard let tableView = tableView else {
fatalError("TableViewLiaison must be liased with UITableView before dequeuing view of type \(T.self)")
Expand Down
2 changes: 1 addition & 1 deletion TableViewLiaison/Classes/Liaison/TableViewLiaison.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import UIKit

public final class TableViewLiaison: NSObject {

weak var tableView: UITableView? {
public internal(set) weak var tableView: UITableView? {
didSet { registerSections() }
}

Expand Down

0 comments on commit 4fd782e

Please sign in to comment.