Created
January 4, 2026 08:58
-
-
Save skydoves/f48fa601933bc7d52c438b0b69a30499 to your computer and use it in GitHub Desktop.
Landscapist: Migration from Coil
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Before: Coil | |
| CoilImage( | |
| model = imageUrl, | |
| contentDescription = "Photo", | |
| component = rememberImageComponent { | |
| +ShimmerPlugin() | |
| +CrossfadePlugin() | |
| } | |
| ) | |
| // After: LandscapistImage (identical API) | |
| LandscapistImage( | |
| model = imageUrl, | |
| contentDescription = "Photo", | |
| component = rememberImageComponent { | |
| +ShimmerPlugin() | |
| +CrossfadePlugin() | |
| } | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment