From fcce42479f788f7f3e5d4b7781efd17534ea0f9b Mon Sep 17 00:00:00 2001 From: Maryom Date: Thu, 26 Jan 2017 09:42:11 +0300 Subject: [PATCH] Deleted the extra func and added return --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f3ee1ca..b02c891 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,7 @@ Next, go to the Storyboard, and change the class of the SideMenuController to th In `AppDelegate.swift`, override `application:didFinishLaunchingWithOptions:`: ```swift -func func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { +func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. SideMenuController.preferences.drawing.menuButtonImage = UIImage(named: "menu") @@ -156,6 +156,8 @@ func func application(_ application: UIApplication, didFinishLaunchingWithOption SideMenuController.preferences.drawing.sidePanelWidth = 300 SideMenuController.preferences.drawing.centerPanelShadow = true SideMenuController.preferences.animating.statusBarBehaviour = .showUnderlay + + return true } ``` ⚠️_If you **do not** specify a menu button image, `SideMenuController` **will not add one by default** and you will have to manually add one whenever transitioning to a new center view controller._