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

Landscape Orientation not working properly #59

Open
qasimmajeed opened this issue May 16, 2019 · 6 comments
Open

Landscape Orientation not working properly #59

qasimmajeed opened this issue May 16, 2019 · 6 comments

Comments

@qasimmajeed
Copy link

I am implementing pullupcontroller in iPad with landscape and portrait orientations.but I just found the landscape is not working fine even i am unable to close the pullupcontroller to its initial point.Kindly can you help me in this one

@CfiedlerIII
Copy link

@qasimmajeed Are you having trouble closing the PullUpController, or having trouble dragging the PullUpController down to the bottom? I don't have issues closing the PullUpController altogether while in landscape, but I do have issues where the PullUpController won't drag up or down even though I verified that I have stickyPoints set.

@MarioIannotta
Copy link
Owner

Hi @CfiedlerIII
thanks for this great work!
Instead of making a new library from this (where everything has been renamed hence keeping the changes in sync would be hard), I would love to add your improvements to this pod.

Could you please make a PR? I don't mind major changes as long as don't cause regressions.
Note that, for example, you removed the UIScrollView extension that was the only way to set the internal scroll view; did you test also this case?

Thanks,
Mario

@CfiedlerIII
Copy link

CfiedlerIII commented May 31, 2019 via email

@CfiedlerIII
Copy link

CfiedlerIII commented May 31, 2019 via email

@MarioIannotta
Copy link
Owner

Do you think that it would be possible to keep both behaviors?
We could model it with a simple enum with associated values.

enum LandscapeMode {
  case fixed(frame: CGRect)
  case pullable(stickyPoints: [CGPoint])
}

What do you think?

@CfiedlerIII
Copy link

CfiedlerIII commented May 31, 2019 via email

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

No branches or pull requests

3 participants