Mercurial > public > geoquiz
comparison GeoQuiz/GuessTheFlagView.swift @ 20:e281791e0494
finish implementation
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Sun, 23 Oct 2022 11:48:39 +0100 |
parents | f140bb277c96 |
children | b145c408f791 |
comparison
equal
deleted
inserted
replaced
19:f140bb277c96 | 20:e281791e0494 |
---|---|
44 Button { | 44 Button { |
45 game.answer((key: countryName, value: game.data[countryName]!)) { | 45 game.answer((key: countryName, value: game.data[countryName]!)) { |
46 game.selector() | 46 game.selector() |
47 } | 47 } |
48 } label: { | 48 } label: { |
49 FlagImage(flagSymbol: game.data[countryName]!.flag, cornerRadius: 20) | 49 Circle() |
50 .clipShape(Circle()) | 50 .stroke(.white, lineWidth: 6) |
51 .overlay { | 51 .frame(height: geo.size.height * 0.15) |
52 Circle() | |
53 .strokeBorder(.white, lineWidth: 4) | |
54 } | |
55 .shadow(radius: 10) | 52 .shadow(radius: 10) |
56 .frame(height: geo.size.height * 0.15) | 53 .overlay( |
54 FlagImage(flagSymbol: game.data[countryName]!.flag) | |
55 .clipShape(Circle()) | |
56 ) | |
57 } | 57 } |
58 } | 58 } |
59 } | 59 } |
60 | 60 |
61 Spacer() | 61 Spacer() |