However it does have some limitations as well. For the "general case" it may not be ideal.
Top of the list is protection. The motor is an expensive part, the wheel is an exposed part - bumping a curb for example could get expensive quickly.
Cooling is also an issue. In-wheel motors suggest air cooling, whereas a bigger (single) motor can be liquid cooled.
Currently in wheel motors end up being quite a bit more expensive (because 4 motors not 1).
On paper, in-wheel motors save space, allow for concepts like "4 wheel drive with different lock", save weight and cleaner design (no drive shafts etc), but it's not clear that the end product is better for "every day" users.
That teardrop-shaped EV [Ed: Aptera] was going to use the Elaph ones but I think there was some issue with producing enough of them or something like that.
Protean wheels will be on the new Renault 5 Turbo3E which will be a high performance, expensive, short production run.
They make it "easy" to electrify a petrol car and there's a few Sandy Munro videos about the Protean wheels where they test drive a Mercedes converted to and EV with them. Munro was contracted to find ways to get the manufacturing cost down without reducing the durability too much.
You might think that YASA motors would be extra useful for IWM applications where lightness is important but there are other constraints such as durability and fitting in the electronics and it might be essential to have a completely custom design. I don't really know but I do think they should be working together in an ideal world.
They are apparently getting the cost down to where we might start to see them in more affordable vehicles: https://www.proteanelectric.com/protean-showcasing-iwm-techn...