Markdown supports inline code with a single backtick on each side, and multiline code blocks with triple backticks above and below. Alternatively, a multiline code block can be indented four spaces.
Let me see if I can illustrate. On HN, backticks are meaningless, and code blocks require two space indents, so this should render as you would write the Markdown source:
Here would be `inline code` delimited with single backticks.
It translates to <code>inline code</code>.
Here would be a multiline code block.
It typically translates to <pre><code>Code is here.</code></pre>:
```
Code is here.
```
A multiline code block can also have a language name when it uses triple backticks, as in your example: ```swift
Swift code is here.
```
Note that there are many flavors of Markdown! I'm describing the one you appear to be using, which is similar to what's used on Stack Overflow and other Stack Exchange sites.