There was a company called (Project) Better Place which promoted that scheme. It quickly went bankrupt, as the startup costs (for building multiple expensive robotic battery swap stations, and stocking them with multiple expensive spare battery packs) are much too high to be amortized by any reasonable monthly payment. BP's monthly subscription price was so high that it wiped out the advantage of electricity being cheaper than gasoline to power your car.
Tesla Motors also tried battery swapping on a trial basis. That was also a flop. Most customers who tried it out didn't ever do it again. One of the problems is that most EV owners want to own their car's battery pack; they want it to be part of the car, not something they just rent. That means if you use a battery swap station, you have to return to the same station later to get your original pack back. Apparently most Tesla customers found that to be an inconvenience.
In summary, it seems that battery swapping in EVs is a solution that few people find worth the bother. And with the range of EVs increasing with each new generation, plus the recharge time decreasing, it won't be many years before nobody is going to have any reason to want to swap battery packs on a new EV.