Thanks for posting your query
You had an injury over your foot & after that there was swelling & it is tender to touch.
It might be soft tissue injury
. But if swelling & tenderness persist , it can be a fracture
So you need a x-ray to rule out fracture.
So you have to visit an orthopaedic surgeon
for exam. of foot & treatment plan acc. to that.