Thanks for writing to us.
The appearance of a painless swelling on the shin could be due to a soft tissue
swelling like lipoma
. Shin splints
is also a possibility which needs to be ruled pout after a proper examination. You can do a hot fomentation in the area and see if it helps.
I hope this information has been both informative and helpful for you.
Dr. Praveen Tayal