Join Slack
Powered by
Is it possible to resize image (make it bigger) wi...
# compose
k
K Merle
01/11/2022, 6:46 AM
Is it possible to resize image (make it bigger) with modifier, but for an image to keep the same ratio?
K Merle
01/11/2022, 6:46 AM
Image is wrapped in Card, so just setting
.size
will make card of that size.
K Merle
01/11/2022, 6:56 AM
Setting
Modifier.defaultMinSize
&
ContentScale.Crop
seems to solve issue.
d
Dominaezzz
01/11/2022, 7:44 AM
I think there's a
Modifier.aspectRatio()
.
Open in Slack
Previous
Next