Apple has pledged to warn iPhone owners if a software update is likely to slow down the device or affect battery life.
The Competition and Markets Authority (CMA) in the UK had expressed concerns in 2017 that people had not realised an operating system update could affect the performance of the phone.
It was concerned that iPhone owners had been repairing their devices or replacing the batteries unnecessarily.
It can now take court action if Apple does not comply.
The CMA added that by signing up to this commitment to greater transparency, Apple was bound by it.
“To ensure compliance with consumer law, Apple has formally agreed to improve the information it provides to people about the battery health of their phones and the impact performance management software may have on their phones,” the CMA says on its website.
Apple has been contacted by the BBC for comment.