Swastika is quiet religious/spiritual symbol and it would just distract workers from Communism. So there hardly is way achieve that. Perhaps if Marx himself decides that religion is not problem and if he adopts Swastika as symbol of Communism.
It's also a very universal symbol, found in indigenous cultures on every continent. So you'd need a Marx who accepts that religion must be part of revolution, but not necessarily Christianity or any other organised religion. The swastika becomes the most prominent symbol of this movement due to the symbol of the "church" (something like the "god-building" concept of OTL perhaps) which replaces the pre-existing religions in many communist countries TTL.
It could also be that communists (and inevitably anarchists too) are inspired by anthropology and ethnography which would discuss "primitive" societies living in perfect harmony with nature and themselves with no hierarchy and the wealth shared amongst all. Since the swastika is a very universal symbol, it becomes adopted by this variety of communist which idealises both "primitive" societies as well as groups like rural peasants who might be considered as having an unbroken link to traditions like this. So this could inspire something like the Narodniks of Russia, which could blend into a communist movement.
If you believe some idiots it already is. They take one look at the term National Socialist, see Socialist and attribute it Communism.
Ignoring them, the Nazi party did originally style itself as a socialist party, as a way to bring in the unions and workers. If Hitler has gone another way, it is possible that the Nazis could have styled themselves as a German alternative to Communism. Though the reflection would largely be only surface level.
That's National Bolshevism, which is basically the Russian version of Strasserism (purged by the Nazis early on). Strasserism and National Bolshevism basically is National
Socialism (hence why it's usually classified as a Third Position ideology).