Open TripwireNL opened 8 years ago
I've reproduced the same behavior just by loading an image asynchronously in the side bar when it is about to appear (leftWillOpen in my case)
Also reproduced, just updating the text on a label in the menu (left) view and everything shifts down and to the right.
It shifts right by 8 and down by 20 - those number seem to line up with "standard value" and the standard margin
I was able to reproduce the issue by programmatically calling openLeft(). I am using Swift 2.2 and have not tried this on any newer Swift version. This seems to be an iOS bug related to AutoLayout/Container management. My observations:
If anyone has this issue on Swift 3 and verifies this fixes the issue there as well, we should open a Radar with Apple, otherwise it may already be fixed in Swift 3.
mbragg1, thank you very much, your comment helped me to fix a bug with y aligment of menu. I'm just changed my menu constrains to your's from №3. It seems to be a bug with TopLayoutGuide constrain.
P.S I'm using xcode 8.1 and swift 3.0
@mbragg1 I have implemented your solution No. 3 regarding the y constraint. And it worked for me as well. I was doing the same putting all views inside a parent view with constraints top, bottom, leading and trailing for the parent view. But they were of no use. I replaced my constraints with the one you mentioned, and now its resolved.
P.S using swift 3.1 and xcode 8.3.3
Hi,
I've encountered a weird behavior when using this controller. Consider the following:
When I do this in my app the whole app seems change layout and moves a few pixels to the side. This only happens when switching apps with the sidemenu open. Any idea what could cause this problem? If screenshots are needed, i'll add some later (and maybe a video to).