Bagusflyer
Bagusflyer

Reputation: 12925

Showing image in Swift Playground Markup

I'd like to show image in my markup document in swift playground file. Here is the code:

//: ![Alt text](1.png) 
//: ![Xcode icon](http://devimages.apple.com.edgekey.net/assets/elements/icons/128x128/xcode.png "Some hover text")

1.png is in the same directory as my playground file. But both are not working.

enter image description here

Any idea? Thanks.

Upvotes: 0

Views: 1857

Answers (1)

Muzahid
Muzahid

Reputation: 5186

Make sure that your image in the Playground Resource folder and then select the Show Rendered Markup from the Xcode editing menu.

Upvotes: 3

Related Questions