Espressif SPI and GPIO expander

Thank you @gcjr

Wire library uses gpio expander with i2c interface where as I am looking for the same with spi interface. So I dont think wire library would work for me. Do you know similar examples that use spi?