Let’s go back to basics in mainstream physics.
What is a wave function? It is the solution of a wave equation. In quantum mechanics it is the solution of a specific equation where, in the double slit experiment, the boundary conditions and potentials give the function that describes an "electron scattering off double slits of given width and distance apart". $Ψ$, the wave function, a complex value function where $Ψ^*Ψ$ is the probability of finding the electron at (x,y,z,t). One needs an accumulation of electrons to be able to measure this probability.
Collapse is a bad description of what happens if the particle undergoes a second scattering, at the detecting screen for example. At the screen there is a new interaction with new boundary conditions that has to be taken if one wants to compute the wave function. It is not a balloon collapsing, but a new necessarily solution for a new interaction, the old wave function becoming mathematical history, recorded on the screen.
But surely the wave function is smeared across both slits
The correct view is a mathematical formula describing the probability of interaction across and through both slits.
and the act of detecting which slit the photon could go through,
It is a second interaction with boundary conditions different, i.e., the first wave function is invalid when a subsequent interaction happens, new boundary conditions are needed for the new solution
if it were a particle, forces the wave function to collapse therefore it cannot continue as a wave.
Let’s make this clear. The electron is always described by a wave function, and when the boundary conditions change, the wave function changes, as with all solutions of differential wave equations.
My answer here may help clear the experimental point. The particle nature appears in the detection of individual electrons. The wave nature in the probability distribution of many electrons.