I don't have any hangups about swearing when I write. If it fits and feels appropriate I'll drop an f-bomb.
Occasionally I'll use punctuation like sh!t to get the point across. 😁
I do swear in everyday conversation so it feels natural to write it when the situation arises.