https://kotlinlang.org logo
#compose
Title
# compose
e

efemoney

09/08/2020, 7:42 AM
Is there a modifier to scale a composable? kinda like how scalex and scaley work? I need something temporary (for animations)
n

nickbutcher

09/08/2020, 7:47 AM
e

efemoney

09/08/2020, 8:02 AM
Thanks @nickbutcher. I did stumble on that but the naming was a bit confusing. Do you know if multiple drawLayer modifiers are merged?
1
n

nickbutcher

09/08/2020, 8:52 AM
@Nader Jawad
e

efemoney

09/08/2020, 9:08 AM
(just to be clearer, wondering what would happen if I’m passing a
modifier
parameter down to a child composable and modifying
drawLayer
but outside of my control someone (while calling me) is also trying to modify via
drawLayer
)
n

nickbutcher

09/08/2020, 9:21 AM
Can you share a snippet of what you're trying to do?
e

efemoney

09/08/2020, 9:32 AM
drawLayer
already did what I needed 🙏🏼. I was only wondering what would happen in this case 👇🏼
a

Adam Powell

09/08/2020, 7:05 PM
we don't perform any sort of modifier fusion today but we may in the future. So far I wouldn't worry about this; if you measure performance issues around it please let us know.
e

efemoney

09/08/2020, 8:01 PM
Awesome, thanks!
11 Views