if statement swiftui
var myBool: Bool = true if myBool == true { // myBool is true here } else { // myBool is false here }
Swift if Statement
if (condition) { // body of if statement }
var myBool: Bool = true if myBool == true { // myBool is true here } else { // myBool is false here }
if (condition) { // body of if statement }