You asked

Which 28mm lens for a leica m camera has autofocus?

None of the 28mm lenses on this site has autofocus. The Leica M lenses that list a focus spec are all manual focus, and the Leica M mount is manual by design. The three 28mm primes the guide covers are:

These pages don't give a focus spec, so the guide can't confirm autofocus on any of them. Treat them as manual-focus lenses unless you check the specification with the maker or a shop before buying.

If autofocus matters more to you than a Leica M rangefinder, the guide's advice is to choose a different system. Its lens notes cover manual-focus lenses on mirrorless bodies, and that is a fun route, but it doesn't add autofocus.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.