scenee / FloatingPanel

A clean and easy-to-use floating panel UI component for iOS
MIT License
5.59k stars 508 forks source link

Small Devices (iPhone SE) Library won't add space for grabber #620

Open mihaicris-adoreme opened 7 months ago

mihaicris-adoreme commented 7 months ago

Description

Small Devices (iPhone SE) Library wont add space for grabber (grabber hidden or shown - the same)

Expected behavior

There is space for grabber before content

Actual behavior

Library wont add space for grabber

Steps to reproduce

See Screenshots (iPhone 15 Pro vs iPhone SE Gen 3)

How do you display panel(s)?

How many panels do you displays?

Environment

Library version 2.8.1

Installation method

iOS version(s)

17.2

Xcode version 15.2

image_720 image_720-1

scenee commented 7 months ago

I tried to reproduce this issue with 'Show Panel in Sheet Modal' use case in the Samples app, but I couldn't. It depends on your FloatingPanelLayout configuration, but I suppose it's caused by safe area behavior of the panel content. If the top anchor of 'Earning Loyalty Points' is constrained to a safeAreaLayoutGuide, I would like you to try to replace it with a constraint to a parent view layout guide.

mihaicris-adoreme commented 7 months ago

I added a sample project here: https://github.com/mihaicris-adoreme/FloatingPanel/tree/master/Examples/Bug

Run with iPhone SE and iPhone 15 Pro

mihaicris-adoreme commented 7 months ago

I think it is the same as #454