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
Arsildo Murati
11/30/2024, 1:35 PM
if(whateverPlatform) { Thing() }
t
Taha
11/30/2024, 2:44 PM
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
Arsildo Murati
11/30/2024, 2:45 PM
yes you have to, only difference is what you said, the impl will be empty