In cases where SwiftUI views are being migrated to...
# compose-ios
j
In cases where SwiftUI views are being migrated to Compose for iOS how are people managing conversion of font size/dimensions etc?
👍 1
d
We don't thinking about it yet. Do you have your own point of view about font size/dimensions ?
j
for fonts at least I guess there's also high level mapping of styles.....for example if I have this in my SwiftUI, what would Compose equivalent
MaterialTheme.typography
value be
Copy code
Text(session.title).font(.title)
I had hacked together following a while back as test (someone had suggested using that 0.sp
letterSpacing
to make appearance more similar. But not sure if that's needed now in 1.5.0-beta01 with https://github.com/JetBrains/compose-multiplatform-core/pull/552 ?
Copy code
Text(text = session.title, style = MaterialTheme.typography.h6.copy(letterSpacing = 0.sp))