https://en.wikipedia.org/wiki/Senseo#Revocation_by_the_Europ...
And actually in the case of Inkjet printers, the court of appeals and the supreme court ruled in favor of companies making third-party cartridges and refills:
https://en.wikipedia.org/wiki/Ink_cartridge#Legality_of_refi...
The EU started an antitrust investigation into Apple's App Store practices:
https://ec.europa.eu/commission/presscorner/detail/en/ip_20_...
Retaliation, such as this one by Apple, or the recent kerfuffle around the WordPress app are only going to increase the probability of antitrust action against Apple.
The Lexmark case was about whether patents right end once a patented product is sold and doesn't seem to be directly applicable here. But note that Lexmark's technological and contractual "post sale" restrictions preventing the reuse of discount toner cartridges were not considered illegal, even if their patent rights were considered exhausted after the sale.
[1] https://en.wikipedia.org/wiki/Magnuson%E2%80%93Moss_Warranty...
If Epic does win it could set a very wide-reaching precedent.