twostraws / HackingWithSwift

The project source code for Hacking with iOS.
The Unlicense
5.88k stars 3.28k forks source link

Project 2: Asset Files Flags #80

Closed jan-sand closed 2 years ago

jan-sand commented 2 years ago

Very important! The flagfiles from Github are all writen in lowercase (If you add them by copy paste). But in the array on the SwiftUI-Tutorial every country starts with uppercase and then lowercase. So once you are coding and building, the asset files cant be found(---> case-sensitive). You need to rename the files or easier rename the country names in the array. Hope this helped.

DavidGalindo23 commented 2 years ago

I have a dumb question how do I download the asset file of the flags ?

CJH199X commented 2 years ago

I have a dumb question how do I download the asset file of the flags ?

I have the same question. Been trying for some time and can't figure it out.

Edit: I ended up using this link https://downgit.github.io/#/home

twostraws commented 2 years ago

You can download the assets here: https://github.com/twostraws/HackingWithSwift/archive/refs/heads/main.zip

The files all have the correct case – just make sure you use the SwiftUI files, not the Classic files.