You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's very common to size image views preserving their image's aspect ratio. We currently support this with the AspectRatio utility, but its call semantics are a bit awkward for this use case. In a simplified example, we end up with something like this:
We should add methods calculate the sizeThatFits and to sizeToFit an image view. Additionally these should specify whether upscaling is allowed, since in many cases (e.g. when using a raster image) you want to cap the image at its native size.
It's very common to size image views preserving their image's aspect ratio. We currently support this with the
AspectRatio
utility, but its call semantics are a bit awkward for this use case. In a simplified example, we end up with something like this:We should add methods calculate the sizeThatFits and to sizeToFit an image view. Additionally these should specify whether upscaling is allowed, since in many cases (e.g. when using a raster image) you want to cap the image at its native size.
The text was updated successfully, but these errors were encountered: