Skip to content

v0.4.0

Latest

Choose a tag to compare

@github-actions github-actions released this 15 Nov 12:50
· 1 commit to main since this release
789252d

Changed (breaking)

  • systemImage and systemName parameters take an SFSymbol instead of a String. Constants are generated for
    every SF Symbol (SFSymbol.starFill, with availability in their KDoc); SFSymbol("name") covers custom or newer
    symbols. Migrate with systemImage = "star.fill" → systemImage = SFSymbol.starFill.
  • SwiftUIEnvironment exposes ColorScheme, DynamicTypeSize, UserInterfaceSizeClass and LayoutDirection
    instead of strings. An absent size class is now null (it used to be an empty string).

Added

  • Label and ContentUnavailableView overloads that take an asset-catalog image with a LocalizedKey title. They
    used to clash with the systemImage overloads.

Fixed

  • renderComposeSwiftUIPreviews links static frameworks that use C libraries, such as SQLDelight's SQLite driver.
    It passes the framework's linkerOpts to the preview host and strips dead code like Xcode does. If symbols are
    still missing, the error says to declare those libraries with linkerOpts.

Install with the Gradle plugin in your shared KMP module:

plugins {
    id("dev.nucleusframework.compose-swiftui") version "0.4.0"
}

Library: dev.nucleusframework:compose-swiftui:0.4.0 on Maven Central.
Gradle plugin: dev.nucleusframework.compose-swiftui 0.4.0 on the Gradle Plugin Portal.
IDE plugin (previews in IntelliJ IDEA / Android Studio): download the zip below, then
Settings › Plugins › ⚙ › Install Plugin from Disk.

Full Changelog: v0.3.2...v0.4.0