Support for UIModalPresentationStyle "popover"

  1. 4 years ago

    Marc

    18 Jun 2019 User since 2018
    Edited 4 years ago by Marc

    When you want to present some settings on an iPad, you sometimes don't want it displayed full screen, but instead in a smaller window. This can be done by supplying the UIModalPresentationStyle enum value "popover" when presenting the view.

    https://developer.apple.com/documentation/uikit/uimodalpresentationstyle

    Example:
    https://blog.verslu.is/wp-content/uploads/2018/07/Screenshot-2018-07-11-10.08.21.png

    NB: For me only "popover" is needed; not the other style choices.

  2. Joel_Eisenstat

    18 Jun 2019 User since 2016

    What is the advantage of this type of window vs a view ( smaller than window ) within a window ?

  3. Marc

    18 Jun 2019 User since 2018
    Edited 4 years ago by Marc

    @Joel_Eisenstat What is the advantage of this type of window vs a view ( smaller than window ) within a window ?

    It’s not a type but a style. It could be passed as an argument when opening the window.

    And I prefer to use default functionality instead of mimicking it.

  4. Joel_Eisenstat

    18 Jun 2019 User since 2016

    OK I see what you are saying ( especially after reading the Apple doc).
    All the styles being available would be very useful , popover in particular.

  5. marco

    19 Jun 2019 Administrator User since 2016

    Hi @Marc you can expect it exposed in the next upcoming release

  6. luciandesign

    23 Dec 2019 User since 2019

    How about the Popover style? https://developer.apple.com/documentation/uikit/uimodalpresentationstyle/popover

or Sign Up to reply!