LeoNatan / LNPopupUI

A SwiftUI library for presenting views as popups, much like the Apple Music and Podcasts apps.
MIT License
320 stars 29 forks source link

Interaction Style issues #27

Closed vercoo666 closed 9 months ago

vercoo666 commented 9 months ago

Describe the Bug

I applied the drag method of interaction style, and it doesn't seem to work.

Screenshots https://github.com/LeoNatan/LNPopupUI/assets/75579438/ce73589e-5923-4c5d-977a-1f0f3398d6a6

vercoo666 commented 9 months ago

The first player is apple music

LeoNatan commented 9 months ago

Hello,

It works in the demo app: https://github.com/LeoNatan/LNPopupUI/assets/2270433/8707749a-e329-496a-b105-79423ae941ab

Please post some code.

vercoo666 commented 9 months ago

Please post some code.

.popup(isBarPresented: $isPopupBarPresented, isPopupOpen: $isPopupOpen) { PlayerPageView() .popupInteractionStyle(.drag) .popupImage(Image("cover1")) .popupTitle(verbatim: "Song Name")

vercoo666 commented 9 months ago

Lmao,I'm a newbie,I misplaced the method,I corrected it and it worked.

Thank you!

LeoNatan commented 9 months ago

Great! Happy coding!