Skip to content

Commit 83f0c65

Browse files
committed
Update MailAppDemoSwift to recommended settings
1 parent a1813d2 commit 83f0c65

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

demo/MailAppDemoSwift/MailAppDemoSwift.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@
364364
PRODUCT_NAME = "$(TARGET_NAME)";
365365
PROVISIONING_PROFILE = "";
366366
SWIFT_OBJC_BRIDGING_HEADER = MailAppDemoSwift/ObjCBridgingHeader.h;
367-
SWIFT_VERSION = 3.0;
367+
SWIFT_VERSION = 4.0;
368368
};
369369
name = Debug;
370370
};
@@ -379,7 +379,7 @@
379379
PRODUCT_NAME = "$(TARGET_NAME)";
380380
PROVISIONING_PROFILE = "";
381381
SWIFT_OBJC_BRIDGING_HEADER = MailAppDemoSwift/ObjCBridgingHeader.h;
382-
SWIFT_VERSION = 3.0;
382+
SWIFT_VERSION = 4.0;
383383
};
384384
name = Release;
385385
};

demo/MailAppDemoSwift/MailAppDemoSwift/MailViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class MailViewController: UIViewController, UITableViewDataSource, UITableViewDe
8080
func mailForIndexPath(_ path: IndexPath) -> MailData {
8181
return demoData[(path as NSIndexPath).row];
8282
}
83-
83+
@objc
8484
func refreshCallback() {
8585
prepareDemoData();
8686
tableView.reloadData();

0 commit comments

Comments
 (0)