Mercurial > public > geoquiz
diff GeoQuiz/GuessTheFlagView.swift @ 21:b145c408f791
refactor code
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Tue, 25 Oct 2022 15:30:01 +0200 |
parents | e281791e0494 |
children | 02dcebb8cc4a |
line wrap: on
line diff
--- a/GeoQuiz/GuessTheFlagView.swift Sun Oct 23 11:48:39 2022 +0100 +++ b/GeoQuiz/GuessTheFlagView.swift Tue Oct 25 15:30:01 2022 +0200 @@ -51,7 +51,10 @@ .frame(height: geo.size.height * 0.15) .shadow(radius: 10) .overlay( - FlagImage(flagSymbol: game.data[countryName]!.flag) + Image(game.data[countryName]!.flag) + .renderingMode(.original) + .resizable() + .scaledToFill() .clipShape(Circle()) ) }