Is it possible to do operadores ternarios
in swift
?
I have this type of code that I repeat many times, and I wanted to know if I can simplify it using operadores ternarios
. condicion ? resultadoTrue : resultadoFalse
if fechaHasta != "" {
labelFecha.text = fechaHasta
}