Make Form Sheet View cover percentage of entire screen
JeffreyCA opened this issue · 0 comments
JeffreyCA commented
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.