It's generally forbidden by law, but under special circumstances it's allowed under § 86 Abs. 3 StGB.
I worked in the Synagogue-Museum Gröbzig attending the 1st International Youth Camp as an Arts Director.
We had the whole library of WWII ideology and it's after-effects bound in one place. For us it would have been hard to work without the Swastika and it's historical background during our Project.
This had to be constituted under the term Freedom of speech, forbidding completely is stupid and senseless, only leading to more stupidity. For what there is to remember and not to forget, you need sth. real, you can't teach that when it's forbidden.
We learned that in Arts-College, if there's a non-political flavour and it's for pure historical taught, work, science or in the arts, again,and/or to show it's historical content, without any political background, it's allowed.
100% if you're an artist, you have to defend your work and will be asked a bunch of stupid questions and ripped out by Bild-Zeitung or selfmade Antifanten, with this in the head, you think twice if it's a deal to you.
In Illustrations or Gaphics or even paintings I saw it frequently in my recent study and of course in the given and respected way.
Now comes the big German aber/but, Germany has probs till today collecting their past. Denacification is just a thing or the 68's revolts are lying here.
In Typography our Prof got probs because he showed clearly under § 86 Abs. 3 StGB the Fraktur-reform, not having probs with officials or our decanate, but with some stupid parents who insulted in having their rich and mature Kids/students forced to watch a Swastika. Nein?! Katastrophe!!! The Prof said and ended he never had probs showing this presentation the last 20yrs, until now. He was very upset, but still, my Semester had too many fresh-from school girls, still virgins physically and psychical, sharing a naive way of thinking, whose book consume never went beyond Wendy or Bravo, the rate is almost growing horribly.
I got accused to be a Nazi too, because I showed Eastern German Street-Signs in Fraktur, the so called Nazi-Typeface in the stupids language. We came to conclusion that it's a prob from the divided Germanys, my Prof learned in Leipzig at the Academy, a very etablished Typo course, where Fraktur was a common lesson for hundreds of years. He learned in the East we have a sort of different way of dealing towards Fraktur use, as in Western Germany. Sth. more less political. He could say that cause he learned in Heidelberg too, and Fraktur in the West Academies was not taught after '45, only in very small circles.
Two Semesters later that (very rude word for a female pile of cells) I had again in a fine arts course, that
who accused my Typography Prof. She made a series of Photoshopped Pics showing words. One of her idea was:
"Arbeit macht frei"
Volltreffer, a shure shot.
I would say 80% of the Swastika hysteria here in this country is made by persons not eligible a higher education or having ever heard of Paragraphs allowing Swastikas in special situations, if it's not in a political content, but in historical and reasonable.
You can even access Mein Kampf as a german citizen under a similar Paragraph, in very limited ways, and that's what I support, this limitation for those seeking for ideology or the opposite freaks. What I don't support is the in-official targeting of the Swastika use under the official law we have, like described below and sadly very frequent, these known hunts show a lack of knowledge.
Still, Germany will have probs with that, why? Because everybody who has ADHS can publish books, make waves and with a school- and pedagogical system like that, you can't deal with a past like ours.