From 0dcc8763b51402b76edfd39601e46f2692b2aa8b Mon Sep 17 00:00:00 2001 From: nikAshanin Date: Thu, 6 Apr 2017 14:27:50 +0300 Subject: [PATCH] add public to extension --- .../TableDirector/TableDirector+Extensions.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/LeadKit/LeadKit/Extensions/TableDirector/TableDirector+Extensions.swift b/LeadKit/LeadKit/Extensions/TableDirector/TableDirector+Extensions.swift index 4e97607b..097dcd7c 100644 --- a/LeadKit/LeadKit/Extensions/TableDirector/TableDirector+Extensions.swift +++ b/LeadKit/LeadKit/Extensions/TableDirector/TableDirector+Extensions.swift @@ -22,10 +22,10 @@ import TableKit -extension TableDirector { +public extension TableDirector { @discardableResult - func replace(section: TableSection, atIndex index: Int, reload: Bool = true) -> Self { + public func replace(section: TableSection, atIndex index: Int, reload: Bool = true) -> Self { if index < sections.count { remove(sectionAt: index) } @@ -37,7 +37,7 @@ extension TableDirector { } @discardableResult - func reload(sectionAtIndex index: Int, with animation: UITableViewRowAnimation = .none) -> Self { + public func reload(sectionAtIndex index: Int, with animation: UITableViewRowAnimation = .none) -> Self { let action = { [tableView] in if index < tableView?.numberOfSections ?? 0 { tableView?.reloadSections([index], with: animation) @@ -54,18 +54,18 @@ extension TableDirector { } @discardableResult - func replace(withSections sections: [TableSection]) -> Self { + public func replace(withSections sections: [TableSection]) -> Self { clear().append(sections: sections).reload() return self } @discardableResult - func replace(withSection section: TableSection) -> Self { + public func replace(withSection section: TableSection) -> Self { return replace(withSections: [section]) } @discardableResult - func replace(withRows rows: [Row]) -> Self { + public func replace(withRows rows: [Row]) -> Self { return replace(withSection: TableSection(rows: rows)) }