Actually, bafang makes mid drive motors to install on any bike. All you need to do is remove the crank arms/bottom bracket, and then install it.
https://lunacycle.com/bafang-bbs02-750w-middrive-kit/
My only issue is the quality, or reliability, of a Schwinn Loop. I'd recommend a better folding bike.