Skip to content

Commit

Permalink
Refactor default initializer, fix Xcode 13 support #89
Browse files Browse the repository at this point in the history
  • Loading branch information
vtourraine committed Sep 21, 2021
1 parent 4000964 commit 2279342
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Sources/AcknowList/AcknowListViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,16 @@ open class AcknowListViewController: UITableViewController {

- returns: The new `AcknowListViewController` instance.
*/
public convenience init() {
public init() {
self.acknowledgements = []

super.init(style: .grouped)

if let path = AcknowListViewController.defaultAcknowledgementsPlistPath() {
self.init(plistPath: path)
}
else {
self.init(acknowledgements: [])
load(from: path)
}

self.title = AcknowLocalization.localizedTitle()
}

/**
Expand Down

0 comments on commit 2279342

Please sign in to comment.