Apologies
You must be signed in to watch this lesson.
Tap Gesture / Other Fixes
Twitter Slide Out Menu
Let's wrap up this section by going through a few strange bugs that you might have spotted in our application. The first is the strange shrinking of the views in our right panel as we swipe open our menu. Another issue we are experiencing is the lack of tapping on our dark cover view to dismiss our menu. Finally, let me implement a minor fix that addresses our safe area bug on landscape.

Comments (10)
iliyas
5 years ago
Hi Voong, I wanted to develop an application in iOS for object recognition, so found your code in the LBTA website. While implementation, I'm stuck with an error called - Use of unresolved identifier 'Resnet50'. Please provide me the complete solution.
Brian Voong
5 years ago
Dennisvm82
5 years ago
Hey Brian, why don't you call closeMenu() directly from the tapGesture in viewDidLoad for the darkCoverView? Is your extra private function programmatically better? This caught my interest :-) let tapGesture = UITapGestureRecognizer(target: self, action: #selector(closeMenu)) darkCoverView.addGestureRecognizer(tapGesture)
Brian Voong
5 years ago
xiao5612327
5 years ago
Hi Brian, for problem #2, instead changing redViewTrailingConstraint, can I just use this when set up redView constraint: change: redView.trailingAnchor.constraint(equalTo: view.trailingAnchor).isActive = true to: redView.widthAnchor.constraint(equalTo: view.widthAnchor).isActive = true so that I don't need to change any trailing constant? Thanks.
Brian Voong
5 years ago
Icesco
5 years ago
Hi Brian, I just implemented this beautiful menu in my app, but I found a little bug.. The problem is that when I try to slide from right to left on one of the cells I can't see the editing options (edit and delete), there's a way that I can fix this issue ?
endodoug
5 years ago
I'm having the same problem. I can't get the tableView(_:editActionsForRowAt:) to work in my tableviews. I suspect the panGesture is causing a conflict. I've messed around with gestureRecognizerShouldBegin(_:) == false when the menu is closed and we swipe to the left. But have not figured it out
Haohong Zhao
5 years ago
Hi Brian, I remember we changed blueView's trailingAnchor from redView's leadingAnchor to redView's safeAreaLayoutGuide.leadingAnchor to fix an issue. Will that issue re-appear after we change back to the original version to fix problem #3 in this video?
Brian Voong
5 years ago
smiller193
5 years ago
anybody else's dark cover view not responding to the tap gesture because mines isn't
smiller193
5 years ago
nvm fixed it
duypham
5 years ago
i got the same problem. How did you fix it? Please help
tsangaris
4 years ago
Hi guys, I don't understand how we are able to get passed the leading safe area (when in portrait mode) when the menu is open, without even using the safe area on any view? Can anyone explain? Thank you in advance.
smehra
4 years ago
Hi Brian, do you plan releasing an update for the slide out menu app in SwiftUI? Thanks and best regards
Brian Voong
4 years ago
MehmetEmre
4 years ago
Hey Brain a quick question about side menu. When I opened the Notification Center or control center from the top app goes to the background and base controller sliding to left. How can solve that bug any idea ? thank you .
David Miller
3 years ago
Brian, I'm having a slightly different bug. TapGesture is working properly for the most part, but if I tap directly on something in my mainVC, it's functionality still works and can cause me to get trapped in the menu. My mainVC is a tableView, so for example, I have collapsible section headers (operational on the left side of the header) and a + symbol that takes you to another VC (on the right side of the section headers). I want these to be "disabled" when my left/right menuVC is open, respectively. Any thoughts on how to fix this?
HELP & SUPPORT