Breaking changes after update from 4.2.0 #2225
denandreychuk
started this conversation in
General
Replies: 1 comment 4 replies
-
If you wish to ignore this specific assertion I'd suggest setting |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We had our own internal implementation of SwiftUI wrapper before it was officially supported by Lottie. Due to the introduction of
SynchronouslyBlockingCurrentThread
, we use that API in specific use-cases where we don't want to provide placeholders and where blocking would be more beneficial for the UX in that context.Now that Lottie offers first-party support, we want to start a soft-migration, but it still requires some specific usage of
DotLottieFile.SynchronouslyBlockingCurrentThread.named
, which eventually throws ashouldn't be called on the main thread
exception.This can be overcome with a private queue sync dispatch, but I'm not sure about potential regressions across the code base. I'd prefer not to introduce these changes due to the high risk involved.
I wonder if it's necessary to throw an exception. Perhaps a simple warning or a note would suffice. We plan to remove use of
SynchronouslyBlockingCurrentThread
, but later in the development cycle.wdyt?
Beta Was this translation helpful? Give feedback.
All reactions