pushIsActivated is an optional bool variable. I use this code to check it's value
if let pushOn = pushIsActivated {
if pushOn {
// Do some stuff...
}
}
is it possible to do something like
if let pushOn = pushIsActivated, pushOn {
// Do some stuff ...
}
Or
if let pushOn = pushIsActivated && pushOn {
// Do some stuff ...
}