Bump to 2.1.1

This commit is contained in:
Florian Gabach
2017-12-10 15:18:17 +01:00
parent 794d5a2d86
commit bc2e69440c
7 changed files with 17 additions and 5 deletions
@@ -29,9 +29,12 @@ class OpenSourceViewController: UITableViewController {
/// Contains all licence object before downloaded
internal var licences: [LicenceFile]?
// Controller configuration for customization
/// Controller configuration for customization
internal var config = OpenSourceControllerConfig()
/// Do we need to show the close button ? (disable if push the controller)
internal var showCloseButton: Bool = true
/// Contains all licences object after downloaded
fileprivate var downloadedLicence: [LicenceFile]? {
didSet {
@@ -58,7 +61,11 @@ class OpenSourceViewController: UITableViewController {
fileprivate func prepare() {
self.prepareTableView()
self.prepareActivityIndicator()
self.prepareCloseButton()
if showCloseButton {
self.prepareCloseButton()
}
self.prepareStyle()
self.prepareLicences()
}