Apple - Does charging to 100% damage an iPhone battery
No it doesn’t. Any 2018 or newer hardware and iOS can handle kiosk mode / constantly charged batteries much better than the old controllers so you should just keep it charged if you like that.
Your XR can be kept 100% topped off without any long term harm.
I disagree with Mac World and only think you should shut down the phone if you don’t regularly do that from time to time (you should do that weekly IMO) and it’s no problem to connect to charge and then power it off. The charging runs without the OS but there’s no benefit to being off while charging in all but some weird edge cases (where the software is so broken it’s running CPU constantly).
Also - some older questions here have old advice for the previous design, when this was in fact a problem if you didn’t care about having a fully charged battery and only cared about years and years between the battery being consumed.
- What are the best practices for battery longevity?
- Is charging my iPhone all night harmful?
Those above questions should probable be locked as “historical” and not used for the iPhone X and newer and corresponding new MacBook / iPad / Apple Watch and more smartly engineered devices that preserve the battery longevity much better than could be accomplished in the past.