Sunil Kumar
09/28/2023, 3:32 AMexpect Dimensions {
val buttonHeight: Dp
}
And then from android we can easily use dimensions from android in actual class, But in iOS how to do that in actual class using size classes becoz i dont have that much knowledge about iOS app development, any reference or example will be appreciatedRehan Tumbi
09/28/2023, 4:44 AMSunil Kumar
09/29/2023, 3:50 AMRehan Tumbi
09/29/2023, 4:26 AMval sizeInPx = with(LocalDensity.current) { 16.dp.toPx() }
Sunil Kumar
09/29/2023, 4:53 AMSomeone suggested me to uselike this:expect/actual
```expect object Dimensions {
val buttonHeight: Dp
val smallPadding: Dp
}```
and on actual for android - use android's dimens resources. in actual for iOS - use size classes by code. in actual for desktop/web - use constants or some that will resolve your taskIs this possible?
Rehan Tumbi
09/29/2023, 5:00 AMSunil Kumar
09/29/2023, 5:16 AMRehan Tumbi
09/29/2023, 5:28 AM