Controversial one here. I’ve always sworn in front of my children. Not constantly, not every conversation, but it’s there. Never at them. I never shout at them either, it’s never said in anger. Just generally dropped in naturally as it might be anyway.
Growing up I was very timid and being raised in a house with very strict rules and parents who never swore. I found when I did hear this language it made me anxious and regardless of how anyone used it, I found it aggressive.
So, I chose to disarm swearing in my home. I never allowed my children to do it, just hear it. They would never jump at the words and they were never taboo. So to them it was never some secret rebellious fun to use them.
I have always explained, from an extremely early age, that language is important and understanding the language you use is important. Swearing is an important tool for adults - who understand the context and the weight of the words they are using. As a child they could not understand this, so they cannot use them without offending or hurting someone.
They are late teenagers now. They have never once sworn at me, or while fighting with each other. They have never sworn at teachers or been in trouble for bullying or offending anyone with how they use their language. If we are at home they ask “can I swear” before they do. Every time. I have told them I know they swear with their friends, and that they will never be in trouble for that so long as they aren’t swearing “at” them or as a way to offend/bully them.
They have also always, always understood slurs as words that I myself will never use and I would not stand for hearing them use, ever.