Repository navigation
Changed (breaking)
systemImageandsystemNameparameters take anSFSymbolinstead of aString. Constants are generated for
every SF Symbol (SFSymbol.starFill, with availability in their KDoc);SFSymbol("name")covers custom or newer
symbols. Migrate withsystemImage = "star.fill"→systemImage = SFSymbol.starFill.SwiftUIEnvironmentexposesColorScheme,DynamicTypeSize,UserInterfaceSizeClassandLayoutDirection
instead of strings. An absent size class is nownull(it used to be an empty string).
Added
LabelandContentUnavailableViewoverloads that take an asset-catalogimagewith aLocalizedKeytitle. They
used to clash with thesystemImageoverloads.
Fixed
renderComposeSwiftUIPreviewslinks static frameworks that use C libraries, such as SQLDelight's SQLite driver.
It passes the framework'slinkerOptsto the preview host and strips dead code like Xcode does. If symbols are
still missing, the error says to declare those libraries withlinkerOpts.
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