Thanks for your query
you suffered is called periosteitis that is traumatic injury to sheath of the bone, leading to swelling and bruise
at the shin. My advice would be Ice fomentation, ibuprofen
and trypsin/chymotrysin to reduce pain and swelling along with rest.
Take care and I shall be glad to answer any further query.