Looks like you aren't importing PassKit in your Swift code. Add import PassKit to the top and it should compile.
import PassKit