简体   繁体   中英

swift playground can't find any type

I'm new to swift playground, and I tried to create a instance of Type like Scene or Graphic. But every time I try it keep saying cannot find 'Scene' in scope or cannot find 'Graphic' in scope. 在此处输入图像描述

What I am missing here? Thanks

If you're using Xcode 12.5 beta, try to enable import App types from the right menu (you can open the right menu using the top right corner button). I think that should solve the problem, but i could be wrong.
Also read this answer by Vitali

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM