Declarations
associatedtype, class, deinit, enum, extension, fileprivate, func, import, init, inout, internal, let, open, operator, private, protocol, public, static, struct, subscript, typealias, and var.
|
Statements
break, case, continue, default, defer, do, else, fallthrough, for, guard, if, in, repeat, return, switch, where, and while
|
Expressions and types
as, Any, catch, false, is, nil, rethrows, super, self, Self, throw, throws, true, and try.
|
|
|
|
|
Begin with a number sign (#)
#available, #colorLiteral, #column, #else, #elseif, #endif, #file, #fileLiteral, #function, #if, #imageLiteral, #line, #selector, and #sourceLocation
|
Reserved in particular contexts
associativity, convenience, dynamic, didSet, final, get, infix, indirect, lazy, left, mutating, none, nonmutating, optional, override, postfix, precedence, prefix, Protocol, required, right, set, Type, unowned, weak, and willSet.
|
Outside the context in which they appear in the grammar, they can be used as identifiers.
Reserved as punctuation
(, ), {, }, [, ], ., ,, :, ;, =, @, #, & (as a prefix operator), ->, `, ?, and ! (as a postfix operator).
|
These tokens are reserved as punctuation and can’t be used as custom operators.
|
|
|
Created By
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets