Swift.codeHinter
Selecting a term shows the hint.
Reading a Swift tutorial or taking a Swift class or course? Select a term like class on a tutorial or reference page to see what it means right where you’re reading.
A term is a language keyword such as if, an operator such as =, or another piece of code the extension recognizes.
- Select a termFor a term like “is not”, select both words together. The text you selected will be highlighted.
Double-click a single word. For an operator or a term with more than one word, drag across the whole term.
- Read the hint
The popup shows a description, an example, and reference links.
The More… buttons at the bottom of the hint are “Show-in-context ↗” links. More if you need it.
Keywords (71), contextual keywords (36), operators (35), and other terms (35). With examples.
Example:
guardSelect a Swift term on a webpage, including in GitHub source, and read the hint in place. Press Escape to close it. Jump to the keyword table.
Sources
Swift lexical structure · Swift Basic Operators
Open a GitHub source file and select a term where you’re reading.
Privacy & Data
One $2.99 USD payment removes the reminder across all CodeHinters. Use Already paid? and the same purchase email to activate another edition.
We collect no data from hint lookups. Your selected text stays in Chrome, and hints come from the reference catalog bundled with the extension.
Chrome keeps your hint count, first- and last-use times, and up to three days you used a Hinter locally. That’s how it knows when to nag you.
Opening a More… link takes you to the reference site. ExtensionPay uses an installation identifier to check purchase status and handles optional checkout.
Swift example tables
With CodeHinters enabled, click a term to see its hint. Use the arrow keys to move between terms. Double-click a term or press Shift+Enter on a focused term to open its primary Show-in-context ↗ reference, even without the extension.
Keyword table
Click a keyword for its hint with the extension enabled. Double-click to open its reference, even without the extension.
Keyword (71)
| #available | #colorLiteral | #else | #elseif | #endif |
| #fileLiteral | #if | #imageLiteral | #keyPath | #selector |
| #sourceLocation | #unavailable | Any | Self | _ |
| as | associatedtype | await | borrowing | break |
| case | catch | class | consuming | continue |
| default | defer | deinit | do | else |
| enum | extension | fallthrough | false | fileprivate |
| for | func | guard | if | import |
| in | init | inout | internal | is |
| let | nil | nonisolated | open | operator |
| precedencegroup | private | protocol | public | repeat |
| rethrows | return | self | static | struct |
| subscript | super | switch | throw | throws |
| true | try | typealias | var | where |
| while |
Contextual keyword (36)
| Protocol | Type | actor | any | associativity |
| async | convenience | didSet | distributed | dynamic |
| each | final | get | indirect | infix |
| isolated | lazy | left | macro | mutating |
| none | nonmutating | optional | override | package |
| postfix | precedence | prefix | required | right |
| sending | set | some | unowned | weak |
| willSet |
Standard library term (5)
| .max | .min | assert | assertionFailure |
Standard library type (6)
| Bool | Double | Float | Int | UInt |
| UInt8 |
Reference term (1)
| Boolean |
Syntax (9)
| /* | // | 0b | 0o | 0x |
| ? | if let | optionals | tuples |
Punctuation (14)
| # | ( | ) | , | -> |
| . | : | ; | @ | [ |
| ] | ` | { | } |
Operator (35)
| ! | != | !== | % | %= |
| & | && | &* | &+ | &- |
| * | *= | + | += | - |
| -= | ... | ..< | / | /= |
| < | << | <= | = | == |
| === | > | >= | >> | ?: |
| ?? | ^ | | | || | ~ |