Skip to content

Make Form Sheet View cover percentage of entire screen #154

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.

Activity

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

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