Skip to content

Conversation

katerynatsy
Copy link

@katerynatsy katerynatsy commented Sep 21, 2022

What?

update Published properties of ImageManager in the main thread

Why?

Publishing changes from background threads is not allowed; make sure to publish values from the main thread.

How?

As a temporary solution, enforcing assigning new values in the main thread but ideally it should be done via subscription to model changes and triggering changes as e response. i.e. via PassthroughSubject and operators like receive(on:)).

Screen Shot 2022-09-21 at 8 42 54 pm

@Dmitry-rman
Copy link

I have a same issue on screen with dynamic list of images, thanks! iOS 16.0 only

@dreampiggy
Copy link
Collaborator

I don't think this fix is correct.

See #232, which dispatch the onAppear in correct timing

@dreampiggy dreampiggy added this to the 2.2.0 milestone Sep 22, 2022
@dreampiggy
Copy link
Collaborator

Since the #232 do the similiar things (It dispatch the onAppear with dispatch async to main), so use that instead, I just close it.

The feature is embed into that PR.

@dreampiggy dreampiggy closed this Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants