Swift playgrounds with UIImage

前端 未结 11 1890
轻奢々
轻奢々 2020-12-01 01:36

I am working with Xcode 6, and I\'m trying to recreate the code demoed during session 401 \"What\'s new in Xcode 6\". I\'ve added an image to Images.xcassets (called Sample)

11条回答
  •  被撕碎了的回忆
    2020-12-01 02:17

    As of Xcode 8 Beta 1, you can use Image Literals to import an image into an Xcode playground:

    Start typing image to add an image literal:

    Select (or browse for) your image:

    See your image inline:

提交回复
热议问题