Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 04:01
· 26 commits to main since this release
310cc63

Added

  • TabView(selection, onSelectionChange) and Tab(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 with buildStyledString { withStyle(SpanStyle(...)) { append(...) } }
    like Compose's buildAnnotatedString. A SpanStyle sets color, font, font size, weight, design, italic, underline,
    strikethrough, monospaced, baseline offset and kerning. Nested styles merge. This replaces Text + Text and
    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