Does swift playground support UIKit?

前端 未结 10 1193
花落未央
花落未央 2020-12-07 23:54

I tried to create a UILabel in playground but failed. Does playground only support OS X development for now?

10条回答
  •  既然无缘
    2020-12-08 00:32

    Press CMD+Option+1 and change the platform to iOS, this will allow you to import UIKit.

提交回复
热议问题