Using Assertions in Swift

Marcin Krzy┼╝anowski explains assertion functions available in Swift:

assert(), assertionFailure(), precondition(), preconditionFailure(), fatalError()

Read closely, there are some important details on the behavior of assertions whether your build is debug or release.