Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Add config so UIImages fit the image automatically #1949

Open
nchamo opened this issue Jan 19, 2021 · 0 comments
Open

Add config so UIImages fit the image automatically #1949

nchamo opened this issue Jan 19, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@nchamo
Copy link
Contributor

nchamo commented Jan 19, 2021

Right now, when a UIImage is used on the SDK, content creators need to specify the sourceWidth and sourceHeight. This values represent the size of the original image. Then, the content creator will need to specify width and height, which represent the final size on screen.

Having to specify sourceWidth and sourceHeight is truly uncomfortable, specially since most platforms already fit the image automatically. There are also some cases, with images used from other servers, where the size is unknown.

The idea would be to support this on the SDK, by adding a boolean flag (maybe called something like fitImage). If the boolean were to be true, then the renderer would ignore the sourceWidth and sourceHeight values, and simply fit it completely.

@nchamo nchamo added the enhancement New feature or request label Jan 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant