身份检查器中的模块字段用于什么?在
Xcode中,当您切换到身份检查器时,类名下面有一个字段.我理解类字段用于选择类但不太清楚模块字段的用途.你可以看到下面的截图
最佳答案 这取自
2014 WWDC discussion
Now, you may notice there’s a new module field here.
Another great way that Swift improves the coding experience is by
associating classes with the modules that they are declared in.That allows you to use short, comfortable class names while still
ensuring that your classes won’t collide across targets and projects.