Skip to content

Make Form Sheet View cover percentage of entire screen #154

Open
@JeffreyCA

Description

@JeffreyCA

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions