comparison 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
comparison
equal deleted inserted replaced
20:e281791e0494 21:b145c408f791
49 Circle() 49 Circle()
50 .stroke(.white, lineWidth: 6) 50 .stroke(.white, lineWidth: 6)
51 .frame(height: geo.size.height * 0.15) 51 .frame(height: geo.size.height * 0.15)
52 .shadow(radius: 10) 52 .shadow(radius: 10)
53 .overlay( 53 .overlay(
54 FlagImage(flagSymbol: game.data[countryName]!.flag) 54 Image(game.data[countryName]!.flag)
55 .renderingMode(.original)
56 .resizable()
57 .scaledToFill()
55 .clipShape(Circle()) 58 .clipShape(Circle())
56 ) 59 )
57 } 60 }
58 } 61 }
59 } 62 }