Swift -> Get image/file extension through url You can find any extension using “ext” in above example.