This is a short hand if else statement.
if isInverted {
return !wasInitiallyAdded
}
else {
return wasInitiallyAdded
}
1
solved Unclear understand of ? : in swift syntax [duplicate]
This is a short hand if else statement.
if isInverted {
return !wasInitiallyAdded
}
else {
return wasInitiallyAdded
}
1
solved Unclear understand of ? : in swift syntax [duplicate]