Skip to content

Commit b7abbe7

Browse files
committed
More Swift 3 renaming
1 parent 559ae66 commit b7abbe7

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

AutoLayout/AutoLayout/AdaptiveViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class AdaptiveViewController: UIViewController {
6464
textLabel.translatesAutoresizingMaskIntoConstraints = false
6565
textLabel.numberOfLines = 0
6666
textLabel.textAlignment = .center
67-
textLabel.textColor = .gray()
67+
textLabel.textColor = .gray
6868

6969
redButton.translatesAutoresizingMaskIntoConstraints = false
7070
redButton.setTitle("No don't do it", for: UIControlState())

AutoLayout/AutoLayout/AppDelegate.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDele
3838

3939
var window: UIWindow?
4040

41-
42-
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
41+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
4342
let splitViewController = self.window!.rootViewController as! UISplitViewController
4443
splitViewController.delegate = self
4544
return true

AutoLayout/AutoLayout/MasterViewController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ class MasterViewController: UITableViewController {
4040
super.viewWillAppear(animated)
4141
}
4242

43-
override func prepare(for segue: UIStoryboardSegue, sender: AnyObject?) {
44-
if let controller = (segue.destinationViewController as! UINavigationController).topViewController {
45-
controller.navigationItem.leftBarButtonItem = self.splitViewController?.displayModeButtonItem()
43+
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
44+
if let controller = (segue.destination as! UINavigationController).topViewController {
45+
controller.navigationItem.leftBarButtonItem = self.splitViewController?.displayModeButtonItem
4646
controller.navigationItem.leftItemsSupplementBackButton = true
4747
}
4848
}

AutoLayout/AutoLayout/RTLViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class RTLViewController: UIViewController {
4646

4747
private func setupViews() {
4848
cherryLabel.text = "🍒🍒🍒"
49-
cherryLabel.backgroundColor = .green()
49+
cherryLabel.backgroundColor = .green
5050
cherryLabel.textAlignment = .right
5151
view.addSubview(cherryLabel)
5252
}

0 commit comments

Comments
 (0)