-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rotating to landscape wrongly places the controller #34
Comments
Looks like adding |
Hi @alexandrutomescu and thank you for your interest in this library. Thanks, |
Ok, I'm glad you found a way to fix the issue, I'll investigate a little bit more to see if I can do something in the library itself to prevent issues like this. Did you tried to update the shadowPath in you Something like that:
|
Hi, Just to let you know that I found the cause of the shadow problem. The issue is on iPhone X and variations. As you see from the second screenshot, my main view controller (see e.g. the MapView) goes only until the notch, but not under (the notch is on the left-hand side). However, the coordinates of the landscape frame of the PullUpController seem to take the x coordinate as starting from under the notch. The shadow goes outside the bounds of the main view controller and under the notch, because I set Anyway, I would consider this closed, because it doesn't seem a problem of PullUpController and also seems to be an edge case. Thanks a lot for your help and for the library! |
@alexandrutomescu bro can you tell me how did you resolved the landscape issue |
Hey, thanks for the great library!
We're considering using it in an existing project. I seem to have managed to customize it fine so far (with rounded corners and shadow). But I cannot seem to set up the landscapeFrame. See this video: https://www.dropbox.com/s/8pxh1rdm56fs1fm/pulluppcontroller.mp4?dl=0 When the phone rotates, the controller is placed somewhere below the screen. When it is fully expanded, it does show up a bit, but its bottom is probably somewhere below the screen bounds. Also, it is aligned next to the left screen edge, even if it should have some trailing space.
I did override
override var pullUpControllerPreferredLandscapeFrame: CGRect
in my own ViewController inheriting from PullUpController. I gave it the value
CGRect(x: 10, y: 20, width: 280, height: 100)
. Is there something else I am missing? Or maybe it is clashing with some existing code?The text was updated successfully, but these errors were encountered: