What is the best treatment for ankle swelling?

See your doctor. Ankle swelling can be caused by numerous medical conditions. You should see a foot/ankle specialist for an evaluation for possible tendonitis, venous stasis, fracture and or soft tissue masses to name a few.
Several things. Elevation, ice and compression tend to works best, but how long has it been swollen and what from.