henrikhorbovyi05/20/2020, 9:52 PM
extensions? I mean, first time I implemented KTX in my project I expected something like:
Haim05/21/2020, 6:31 PM
to set visibility according to a boolean expression. For example:
. So something like
titleView.isVisible = title.isNotEmpty()
would not be so helpful for me.
henrikhorbovyi05/21/2020, 7:12 PM
is a better approach?
Haim05/21/2020, 7:25 PM
function is setting it to visible or checking if it's visible...
sound better to me.
on the other hand, is an adverb, so the word doesn't seem to indicate that the function changes the visibility of the view.
Cody Engel05/21/2020, 7:46 PM
) but when it comes to boolean expressions you'd still have
for example. I wasn't aware KTX had those already, they sound pretty nifty though.
henrikhorbovyi05/21/2020, 8:32 PM
sindrenm05/22/2020, 9:46 AM
isVisible = false
, for instance?
henrikhorbovyi05/22/2020, 1:44 PM
Cody Engel05/22/2020, 4:03 PM
henrikhorbovyi05/22/2020, 4:38 PM