SwiftUI LottieView disappears when previewing preview with contextMenu #2355
chuymaster
started this conversation in
General
Replies: 1 comment
-
Have you tried to put the LottieView inside a ZStack? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using contextMenu with preview, if I long-press to open the context menu, Lottie view disappears, causing glitch in view transition.
Refer to the video:
Simulator.Screen.Recording.-.iPhone.15.-.2024-04-01.at.11.52.48.mp4
Reproducing code, tested on iOS 17.2 simulator. (Confirmed same behavior on iPhone 15 iOS 17.4)
Which Version of Lottie are you using?
Lottie 4.4.1
Expected Behavior
LottieView keeps running animation during long-press and after the preview is closed, as in the context menu that has no preview.
Actual Behavior
LottieView disappears during long-press and after the preview is closed for a short period.
Animation JSON
https://lottiefiles.com/animations/sample-ac0sBj9eCw
Beta Was this translation helpful? Give feedback.
All reactions