diff 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
line wrap: on
line diff
--- a/GeoQuiz/GuessTheFlagView.swift	Sun Oct 23 00:11:38 2022 +0100
+++ b/GeoQuiz/GuessTheFlagView.swift	Sun Oct 23 11:48:39 2022 +0100
@@ -46,14 +46,14 @@
                                     game.selector()
                                 }
                             } label: {
-                                FlagImage(flagSymbol: game.data[countryName]!.flag, cornerRadius: 20)
-                                    .clipShape(Circle())
-                                    .overlay {
-                                        Circle()
-                                            .strokeBorder(.white, lineWidth: 4)
-                                    }
+                                Circle()
+                                    .stroke(.white, lineWidth: 6)
+                                    .frame(height: geo.size.height * 0.15)
                                     .shadow(radius: 10)
-                                    .frame(height: geo.size.height * 0.15)
+                                    .overlay(
+                                        FlagImage(flagSymbol: game.data[countryName]!.flag)
+                                            .clipShape(Circle())
+                                    )
                             }
                         }
                     }