Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Compose] Expose Glide loading status as an observable state. #5417

Closed
mhozza opened this issue Jun 3, 2024 · 1 comment
Closed

[Compose] Expose Glide loading status as an observable state. #5417

mhozza opened this issue Jun 3, 2024 · 1 comment

Comments

@mhozza
Copy link

mhozza commented Jun 3, 2024

Issue details / Repro steps / Use case background:

We would like to show / hide some other UI based on the glide loading status. It would be great if Glide could expose observable loading state that could be used for this:

API Example:

val glideState = rememberGlideState()

GlideImage(glideState, ...)

if(glideState.status == Status.SUCCEEDED) {
  ShareButton(...)
}

@mhozza
Copy link
Author

mhozza commented Sep 30, 2024

Looks like the GlideSubcomposition is good enough for this usecase.

@mhozza mhozza closed this as completed Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant