Skip to content
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

[BUG] - HIGH - Not working on screen rotation + Not working in Landscape #460

Closed
StefaniOSApps opened this issue Jan 1, 2020 · 20 comments · Fixed by #468
Closed

[BUG] - HIGH - Not working on screen rotation + Not working in Landscape #460

StefaniOSApps opened this issue Jan 1, 2020 · 20 comments · Fixed by #468

Comments

@StefaniOSApps
Copy link

Unfortunately I had to find out that the layout is destroyed when rotating under iOS 13. I have already checked it under 2.4.1 (from 2017) and also checked with develop branch with #379 . This error also exists with this version or with the develop branch.

I created a demo git so that you can easily reproduce it.
https://github.com/StefaniOSApps/ActionSheet-Example

The error is shown in this video.
Screen Record

@StefaniOSApps
Copy link
Author

@skywinder

@skywinder skywinder added the bug label Jan 3, 2020
@skywinder
Copy link
Owner

@StefaniOSApps Oh, got it. thanks for the mention and detailed description!

Rotations screen was always quite painfull for dynamic views.
I thing the best way to quick fix now - is just hide picker when the screen is rotating. Thougs?

@StefaniOSApps
Copy link
Author

This will not fix the problem. If you open the sheet in the landscape, it will already be extended incorrectly. This is shown in the GIF. @skywinder
GIF SCREEN

@StefaniOSApps
Copy link
Author

It will most likely be a method that is deprecated as of iOS 13.

@StefaniOSApps StefaniOSApps changed the title [BUG] - HIGH - Not working on screen rotation [BUG] - HIGH - Not working on screen rotation + Not working in Landscape Jan 4, 2020
@skywinder
Copy link
Owner

Can't realize, hot ti fix it in the right way. Looking forward to any suggestions.

@StefaniOSApps
Copy link
Author

Hey, we need support. Any ideas? @xjki @BubiDevs @TimCinel, @kashifhisam or @delackner?

@Jack-s
Copy link

Jack-s commented Jan 30, 2020

If it helps it looks like this is only an issue from the 2.4 release (2.3.1 seems to be fine). It also is an issue on iOS 12 as well so I don't think it's a iOS 13 specific issue.

@StefaniOSApps
Copy link
Author

yes, it is most likely a bug generated by an iOS update.

@skywinder
Copy link
Owner

@Jack-s confirmed, in 2.3.1 it works. (it's simply dismisse picker)

@StefaniOSApps all that I can do now: to make an action, to dismiss the picker upon rotation. In most cases, it wouldn't be a problem. And I will preserve boolean trigger to switch off that behavior (with the warning, that developer do this at his own risk and it's not tested).

Thoughts?

@StefaniOSApps
Copy link
Author

StefaniOSApps commented Feb 8, 2020

I don't think you have yet understood that the picker no longer works in the landscape. This is the main problem. You can also dismiss a picker by using your own methods.
ezgif-6-ac2350cea71e

see demo project https://github.com/StefaniOSApps/ActionSheet-Example @skywinder

@StefaniOSApps
Copy link
Author

btw ... the video above was made with 2.3.1 @Jack-s @skywinder

Downloading dependencies
Installing ActionSheetPicker-3.0 2.3.1 (was 2.4.1 and source changed to `https://cdn.cocoapods.org/` from `trunk`)
Generating Pods project
Integrating client project
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.

@skywinder
Copy link
Owner

skywinder commented Feb 12, 2020

oh, crap. @StefaniOSApps I'm digging into it.

I tried to run on 2.3.1 - it works fine on ios 11 and ios 13. So will go deep into diff now.

ps. your project (https://github.com/StefaniOSApps/ActionSheet-Example) doesn't specify version:
look at podfile: pod 'ActionSheetPicker-3.0'

so you still use the latest one.

p.s. hope your Energy Tracker doesn't affect too much. will do my best right now.

@skywinder
Copy link
Owner

Gotcha. @moheny changes brokes rotation logic. now it works. But I have to dismiss picker on iPhones during rotation. (for iPad it works as it was before)

@skywinder
Copy link
Owner

Fixed in 2.4.2 🎉

@skywinder
Copy link
Owner

skywinder commented Feb 12, 2020

rotation fixes in ACP looks like.. 😂
https://imgur.com/pdGY72I

@StefaniOSApps
Copy link
Author

@skywinder the commit (change podfile) was not pushed. I have now pushed the changes (commit) I have now extensively tested it and it fixes the problem on 13.0. However, the Dismiss rotation is broken. We currently differentiate between iPad true and false. In the case of iPad == false, one could revise and solve with a transition delegate. I have now implemented this in my new project regardless of you in this way and it looks good. The rotation also looks clean.

@skywinder
Copy link
Owner

skywinder commented Feb 15, 2020

@StefaniOSApps Just dun your example. looks good.

What you mean, "Dismiss rotation is broken"? How does it look like? On iphone? Which position? Can you provide any steps to reproduce?

@StefaniOSApps
Copy link
Author

use demo project from top. @skywinder
Ohne-Titel-2

@skywinder
Copy link
Owner

oh, got it. in slow motion, I can see this.
I will leave it as is for a while.

so, please let me know, if you know, how to solve this.

@skywinder
Copy link
Owner

skywinder commented Aug 28, 2020

Oh. I found that didn't reope it. @StefaniOSApps Does it persist in latest versions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants