mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-08-20 06:17:05 +00:00
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:
parent
0a6807a804
commit
d6c44b3c07
1 changed files with 4 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue