Swift’s guard keyword

Swift 2 introduced the guard keyword, which could be used to ensure that various data is configured ready to go. An example I saw on this website demonstrates an submitTapped function: func submitTapped() { guard username.text.characters.count > 0 else { return } print(“All good”) } I am wondering if using guard is any different than … Read more