diff --git a/AcknowList.podspec.json b/AcknowList.podspec.json index 4789b61..65117d9 100644 --- a/AcknowList.podspec.json +++ b/AcknowList.podspec.json @@ -1,6 +1,6 @@ { "name": "AcknowList", - "version": "2.0.1", + "version": "2.0.2", "summary": "Ready to use “Acknowledgements”/“Licenses” view controller for CocoaPods.", "homepage": "https://github.com/vtourraine/AcknowList", "license": { @@ -12,7 +12,7 @@ }, "source": { "git": "https://github.com/vtourraine/AcknowList.git", - "tag": "2.0.1" + "tag": "2.0.2" }, "source_files": "Sources/AcknowList/*.swift", "resource_bundles": { diff --git a/CHANGELOG.md b/CHANGELOG.md index 94fe20f..625d620 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.0.2 (17 September 2021) + +- Update `AcknowListViewController` to remove Objective-C compatibility, fixing Xcode 13 support + + ## 2.0.1 (26 April 2021) - Update `AcknowListViewController` to make initializers available with Objective-C diff --git a/Examples/AcknowExampleManual/AcknowExample/ObjCViewController.m b/Examples/AcknowExampleManual/AcknowExample/ObjCViewController.m index cbe59e5..cf0c1ca 100644 --- a/Examples/AcknowExampleManual/AcknowExample/ObjCViewController.m +++ b/Examples/AcknowExampleManual/AcknowExample/ObjCViewController.m @@ -28,12 +28,14 @@ @implementation ObjCViewController - (void)presentAcknowListViewController { - NSString *path = @""; - AcknowListViewController *viewController = [[AcknowListViewController alloc] initWithPlistPath:path style:UITableViewStylePlain]; - viewController.headerText = @"..."; - viewController.footerText = @"..."; + // Objective-C compatibility has been disabled, see: https://github.com/vtourraine/AcknowList/issues/89 + // + // NSString *path = @""; + // AcknowListViewController *viewController = [[AcknowListViewController alloc] initWithPlistPath:path style:UITableViewStylePlain]; + // viewController.headerText = @"..."; + // viewController.footerText = @"..."; - [self presentViewController:viewController animated:YES completion:nil]; + // [self presentViewController:viewController animated:YES completion:nil]; } @end diff --git a/Sources/AcknowList/AcknowListViewController.swift b/Sources/AcknowList/AcknowListViewController.swift index 78e4100..44292a9 100644 --- a/Sources/AcknowList/AcknowListViewController.swift +++ b/Sources/AcknowList/AcknowListViewController.swift @@ -74,7 +74,7 @@ open class AcknowListViewController: UITableViewController { - returns: The new `AcknowListViewController` instance. */ - @objc public convenience init(fileNamed fileName: String) { + public convenience init(fileNamed fileName: String) { if let path = AcknowListViewController.acknowledgementsPlistPath(name: fileName) { self.init(plistPath: path) } @@ -92,7 +92,7 @@ open class AcknowListViewController: UITableViewController { - returns: The new `AcknowListViewController` instance. */ - @objc public convenience init(plistPath: String, style: UITableView.Style = .grouped) { + public convenience init(plistPath: String, style: UITableView.Style = .grouped) { self.init(acknowledgements: [], style: style) load(from: plistPath)