Check out example codes for "swift download". It will help you in understanding the concepts better.
Code Example 1
plz dont use this, it sucks like a piece of fuck, just chose ruby or something anything but this, and btw I asked people around the world and they said swift sucks like shit
Learn ReactJs, React Native from akashmittal.com