You can compile and run Swift code directly in the browser. Try it out!
If you feel like solving some programming exercises you can try our online library of exercises. The sandbox has an integrated compiler and interactive code editor. It has over 150 exercises to help you practice swift and algorithms.