swift4.1 Editor placeholder in source file问题无法解决

图片说明

这个代码应该是存在错误的,你看下错误的提示就知道了

有时候是xcode的问题,你clear一下再编译试试,会不会好

你需要给定一个占位值,如果snapshot没有值的时候可以取用