Markup Formatting Reference: Images (original) (raw)

Include inline images from your playground project.

Works with:

Swift Playgrounds can only load image resources that are included in the Playground package; remote image URLs aren’t rendered. For information on adding images and other resource files to your playground, see Add resources to a playground in Xcode Help.

Syntax

Playground Image Example

A link to a playground resource with no hover text.

  1. //: ![The real head of the household?](cat.png)

image: ../Art/MFR_image_resource_eg_2x.png

Quick Help Example

  1. /**
  2. An example of using *images* to display a web image
  3. ``
  4. ![Xcode icon](http://devimages.apple.com.edgekey.net/assets/elements/icons/128x128/xcode.png "Some hover text")
  5. ``
  6. */

image: ../Art/MFR_symbol_images_2x.png

Named Page

Videos

Copyright © 2018 Apple Inc. All rights reserved. Terms of Use | Privacy Policy | Updated: 2017-06-05