https://kotlinlang.org logo
#compose
Title
# compose
k

Kensuke Sano

02/26/2021, 12:12 PM
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

John O'Reilly

02/26/2021, 12:18 PM
I believe
CoilImage
(https://github.com/chrisbanes/accompanist/blob/main/coil/README.md) allows setting of placeholder at least
d

dagomni

02/26/2021, 12:54 PM
@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

Kensuke Sano

02/26/2021, 2:11 PM
Thanks!! I’ll try it!
e

Elias DEBS

02/26/2021, 4:10 PM
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

Kensuke Sano

02/26/2021, 5:08 PM
@Elias DEBS It’s a great codelab!! How can I use this animation to Text Component while loading ?