These packages are available as a package collection, usable in Xcode or SwiftPM.
A Swift library for the MCP3008 (and MCP3002,MCP3004) 10 bits SPI ADC
1 package.