scenee / FloatingPanel

A clean and easy-to-use floating panel UI component for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

mihaicris-adoreme opened this issue · 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

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.

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

Run with iPhone SE and iPhone 15 Pro

I think it is the same as #454