Is there any way to show placehoder while loading ...
# compose
k
Is there any way to show placehoder while loading text or image like redacted in SwiftUI? https://swiftwithmajid.com/2020/10/22/the-magic-of-redacted-modifier-in-swiftui/
1
j
I believe
CoilImage
(https://github.com/chrisbanes/accompanist/blob/main/coil/README.md) allows setting of placeholder at least
d
@Kensuke Sano you can use a skeleton modifier I wrote a while back and modify it to your needs, it could surely use some improvements https://gist.github.com/dgomolka/c8af2ea84d8ec95eda9aa861e38e955f
k
Thanks!! I’ll try it!
e
i've stumbled upon this feature in the newly Compose codelab's, check it out https://developer.android.com/codelabs/jetpack-compose-animation#6
k
@Elias DEBS It’s a great codelab!! How can I use this animation to Text Component while loading ?