From d899d49c1e5a7c29991594d453ff783b60a43c8e Mon Sep 17 00:00:00 2001 From: Aaron Wardle Date: Fri, 24 Nov 2017 00:25:03 +0000 Subject: [PATCH] Update UIKitExtensions.swift Building the project against iOS11 we have spotted that the UIBarButton is not in the correct location on the left navigation bar looking at the apple documentation it recommends that the standard non retina size of the button should be 22px x 22px. --- Source/UIKitExtensions.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/UIKitExtensions.swift b/Source/UIKitExtensions.swift index 529c08a..31e0918 100644 --- a/Source/UIKitExtensions.swift +++ b/Source/UIKitExtensions.swift @@ -43,7 +43,7 @@ public extension UINavigationController { return } - let button = UIButton(frame: CGRect(x: 0, y: 0, width: 40, height: 40)) + let button = UIButton(frame: CGRect(x: 0, y: 0, width: 22, height: 22)) button.accessibilityIdentifier = SideMenuController.preferences.interaction.menuButtonAccessibilityIdentifier button.setImage(image, for: .normal) button.addTarget(sideMenuController, action: #selector(SideMenuController.toggle), for: UIControlEvents.touchUpInside)