slackhq / PanModal

An elegant and highly customizable presentation API for constructing bottom sheet modals on iOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Modal layout issue on iPad

silajdzice opened this issue · comments

Description

Hello everyone,
I have issue with PanModal when presenting it on iPad devices. On iPhones it looks great, but when I tried it on iPad, modal have strange layout, lay-outing it from top left side of screen. Is there a way to change it to a bottom to top vertical modal similar to the iPhone(but not to break anything on iPhone devices), not full screen just to take height that I tell it ?

What type of issue is this? (place an x in one of the [ ])

  • bug
  • enhancement (feature request)
  • question
  • documentation related
  • testing related
  • discussion

Requirements (place an x in each of the [ ])

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

Reproducible in:

PanModal version: 1.2.7

iOS version: 15

Steps to reproduce:

  1. Launch the project
  2. Build the app for an iPad device or simulator
  3. Navigate to screen where you present PanModal

Expected result:

Presented PanModal is from bottom to top, at height you gave it

Actual result:

PanModal is presented on top left side of iPad device

Attachments: