As you said there is swelling and unable to take weight on foot. My suggestion is show to orthopaedic doctor. It might be sever ligament sprain or fracture. Need to find exact cause.
Next Steps
Immediately show to orthopaditian.
Health Tips
You can have ice pack for pain and swelling. Tie crept bandage to support the limb. Avoid taking weight on the same foot.