mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2025-12-08 07:15:39 +00:00
attribute builder now may skip nullable values
This commit is contained in:
@@ -24,9 +24,10 @@ class UIKitAttributeValueBuilder {
|
||||
|
||||
fun AttrsBuilder<*>.buildAndAddAttribute(
|
||||
attributeName: String,
|
||||
skipNullValues: Boolean = true,
|
||||
block: AttributeBuilder.() -> Unit
|
||||
) {
|
||||
buildAttribute(attributeName, block).let {
|
||||
buildAttribute(attributeName, skipNullValues, block).let {
|
||||
attr(it.first, it.second)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user