FloatingPanel icon indicating copy to clipboard operation
FloatingPanel copied to clipboard

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

Open mihaicris-adoreme opened this issue 1 year ago • 3 comments

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)?

  • Present modally

How many panels do you displays?

  • 1

Environment

Library version 2.8.1

Installation method

  • Swift Package Manager

iOS version(s)

17.2

Xcode version 15.2

image_720 image_720-1

mihaicris-adoreme avatar Feb 19 '24 10:02 mihaicris-adoreme

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.

scenee avatar Feb 23 '24 01:02 scenee

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 avatar Feb 23 '24 12:02 mihaicris-adoreme

I think it is the same as #454

mihaicris-adoreme avatar Feb 23 '24 14:02 mihaicris-adoreme