fix(ios): enable animated GIF preview on Profile Edit Screen

- Updated `ProfileIdentityCard` to use `CollectionCardRemoteImage`.
- Configured `animateIfPossible = true` to provide real-time animated previews during profile creation or customization on iOS.
This commit is contained in:
Luqman Fadlli 2026-05-26 10:22:41 +07:00 committed by GitHub
parent 0a6807a804
commit d6c44b3c07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,6 +54,7 @@ import com.nuvio.app.core.ui.NuvioScreen
import com.nuvio.app.core.ui.NuvioScreenHeader
import com.nuvio.app.core.ui.NuvioStatusModal
import com.nuvio.app.core.ui.NuvioSurfaceCard
import com.nuvio.app.features.home.components.CollectionCardRemoteImage
import kotlinx.coroutines.launch
import nuvio.composeapp.generated.resources.*
import org.jetbrains.compose.resources.stringResource
@ -408,11 +409,12 @@ private fun ProfileIdentityCard(
contentAlignment = Alignment.Center,
) {
if (customAvatarUrl != null) {
AsyncImage(
model = customAvatarUrl,
CollectionCardRemoteImage(
imageUrl = customAvatarUrl,
contentDescription = name,
modifier = Modifier.size(88.dp).clip(CircleShape),
contentScale = ContentScale.Crop,
animateIfPossible = true,
)
} else if (selectedAvatar != null) {
AsyncImage(