Skip to content

Commit

Permalink
Fix Xcode 13 compatibility fix #89
Browse files Browse the repository at this point in the history
  • Loading branch information
vtourraine committed Sep 17, 2021
1 parent d0e560c commit 4000964
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
4 changes: 2 additions & 2 deletions 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": {
Expand All @@ -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": {
Expand Down
5 changes: 5 additions & 0 deletions 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
Expand Down
12 changes: 7 additions & 5 deletions Examples/AcknowExampleManual/AcknowExample/ObjCViewController.m
Expand Up @@ -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
4 changes: 2 additions & 2 deletions Sources/AcknowList/AcknowListViewController.swift
Expand Up @@ -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)
}
Expand All @@ -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)
Expand Down

0 comments on commit 4000964

Please sign in to comment.