library / org.akop.kotx.ext.view / android.view.View / showIf

showIf

fun View.showIf(value: Boolean): Unit

Sets receiver's visibility to View.VISIBLE if value is true; sets it to View.INVISIBLE otherwise. Opposite of hideIf; also see expandIf.