It is a crying shame how the official Apple cables seem to be almost intentionally designed to be as fragile as possible. Everyone I have ever known with a MacBook MagSafe chargers has a cable that is in tatters and when I see them it genuinely scares me. And when I ask them about it the response is usually akin to “well it still works and they’re expensive to replace”. True enough if you want to replace it with an official one. Admittedly I haven’t seen any of the newer usb-c ones.
The lightning cables tend to hold up a little better but the jacketing still seems extra thin and flimsy. I've actually only owned 2 iPhones (6s and SE2) and one iPad because I'm not someone who cares about having (or spending the money) on a crazy fancy phone but I do prefer iOS. I've bought a few nice third-party MFI-certified cables after the one that came with my 6s disintegrated and haven't bought a new one since. They were a bit expensive, but they're in as good of shape as when I bought them and well worth the upfront cost.
At least the modern lightning and USB-C cables can be replaced easily and cheaply. In the bad old day of MagSafe, a cable failure meant replacing the entire charger.
As for Apple's recent cables, the rubber has become discoloured on my very-well-used 2017 MacBook Pro USB-C charging cable, but it's still completely intact with no signs of fraying or failing. My ~2.5 year old USB-C to lightning cable seems to be holding up well so far too.
I’ve been using them for a few years and they’re virtually indestructible. They have a thin wire braided into the plastic overmold so they’re extremely tough, and the strain relief on the cable ends is about as good as it gets.