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

Make Form Sheet View cover percentage of entire screen #154

Open
JeffreyCA opened this issue Jan 7, 2018 · 0 comments
Open

Make Form Sheet View cover percentage of entire screen #154

JeffreyCA opened this issue Jan 7, 2018 · 0 comments

Comments

@JeffreyCA
Copy link

I want to make the form sheet cover X% of the entire screen (i.e. 80% screen width 80% screen height).

Initially I had something like this:

let transform = CGAffineTransform(scaleX: 0.8, y: 0.8)
formSheetController.presentationController?.contentViewSize = UIScreen.main.bounds.size.applying(transform)

However, the content size does not change on rotation (width, height displaying as if still in portrait mode).

I read in your README to use UILayoutFittingCompressedSize, however it returns a small box, not the entire screen. I want something that returns the full screen size, then want to apply a scale transform. I tried UILayoutFittingExpandedSize but that did not return entire screen size.

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

1 participant