diff --git a/CHANGELOG.md b/CHANGELOG.md index 75a325d..9b60097 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.0.52 + +* Improve work with UIKitModifiers + ## 0.0.51 * New interface `Dropdown` which will be used to create (or retrieve) dropdown for an element diff --git a/gradle.properties b/gradle.properties index bdf42d5..dc6199f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,4 +9,4 @@ android.enableJetifier=true # Project data group=dev.inmo -version=0.0.51 +version=0.0.52 diff --git a/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitModifier.kt b/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitModifier.kt index bfffeb6..d202890 100644 --- a/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitModifier.kt +++ b/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitModifier.kt @@ -26,8 +26,8 @@ operator fun UIKitModifier.plus(other: UIKitModifier): UIKitModifier = UIKitCust classes + other.classes, otherAttrs + other.otherAttrs ) -fun UIKitModifier.builder() = Attrs(this).builder -fun Array.builder() = Attrs(*this).builder -inline fun attrsBuilder(vararg modifiers: UIKitModifier) = modifiers.builder() +fun UIKitModifier?.builder() = Attrs(this).builder +fun Array.builder() = Attrs(*this).builder +inline fun attrsBuilder(vararg modifiers: UIKitModifier?) = modifiers.builder() @JsName("plusBuilder") -operator fun UIKitModifier.plus(other: UIKitModifier): AttrBuilderContext = Attrs(this@plus, other).builder +operator fun UIKitModifier?.plus(other: UIKitModifier?): AttrBuilderContext = Attrs(this@plus, other).builder