how do i implement a component that is supported i...
# compose
t
how do i implement a component that is supported in one target only and ignore it in other platforms (ex: scrollbars) i currently did expect actual functions implemented it on desktop and left them empty on other platforms.
a
if(whateverPlatform) { Thing() }
t
i still can't call compose desktop apis from common main so i guess a simple if check wont work here. also i still have to write my own logic to check for current platform using expect actual i belive
a
yes you have to, only difference is what you said, the impl will be empty
👍 1