I will add another anecdotal hearing to this, because they did in fact replace an iPhone free of charge for me a few years ago when the battery was draining too fast. (And also a MacBook Pro battery, back in the dim forgotten era when such things were user-replaceable.)