Repository navigation
v0.2.0
Added
TabView(selection, onSelectionChange)andTab(title, systemImage, value): the selected tab is Kotlin state, so
code can switch tabs (for example a button in one tab that opens another). Tapping the tab bar calls
onSelectionChange.- Mixed-style text:
Text(StyledString), built withbuildStyledString { withStyle(SpanStyle(...)) { append(...) } }
like Compose'sbuildAnnotatedString. ASpanStylesets color, font, font size, weight, design, italic, underline,
strikethrough, monospaced, baseline offset and kerning. Nested styles merge. This replacesText + Textand
AttributedString, which Kotlin can't express. - The sample app shows both: a tab bar switched from Kotlin and a styled paragraph.
Install with the Gradle plugin in your shared KMP module:
plugins {
id("dev.nucleusframework.compose-swiftui") version "0.2.0"
}Library: dev.nucleusframework:compose-swiftui:0.2.0 on Maven Central.
Gradle plugin: dev.nucleusframework.compose-swiftui 0.2.0 on the Gradle Plugin Portal.
Full Changelog: v0.1.1...v0.2.0