Apple will be able to continue selling its iPhone 6 and 6 Plus phones in China after winning a patent battle that threatened to stop the sales.

Apple had been sued by Chinese firm Baili, who claimed the company infringed on the design of its 100C smartphone.

The ban had initially been approved by China’s patent regulator, but was later overturned by a court.

ALSO: iPhones Are Exploding In China As Multiple Cases Are Reported

The Beijing Intellectual Property Court said the patent body had not given enough evidence to prove that a patented design was being violated.

Apple’s sales in China have declined though, with the rising of brands such as Huawei and Xiaomi in the country.

Baili reportedly plans to appeal the decision.