A chiral switchable photovoltaic ferroelectric 1D perovskite