Swift PreconditionCatching Resources