diff GeoQuiz/GuessTheFlagView-ViewModel.swift @ 31:9d6dd0e59c22

remove dataset and add new screenshots
author Dennis C. M. <dennis@denniscm.com>
date Fri, 11 Nov 2022 08:59:02 +0100
parents 3f4b366d476d
children
line wrap: on
line diff
--- a/GeoQuiz/GuessTheFlagView-ViewModel.swift	Thu Nov 10 11:51:52 2022 +0100
+++ b/GeoQuiz/GuessTheFlagView-ViewModel.swift	Fri Nov 11 08:59:02 2022 +0100
@@ -13,8 +13,8 @@
     class Layout {
         
         static func showFlag(in flagPath: String, geo: GeometryProxy, _ userController: UserController) -> some View {
-            switch userController.data.guessTheFlagShape {
-            case .respectAspectRatio:
+            switch userController.data.guessTheFlagAspectRatio {
+            case .original:
                 return AnyView(
                     RoundedRectangle(cornerRadius: 20)
                         .foregroundColor(.white.opacity(0.5))
@@ -44,7 +44,7 @@
                         .renderingMode(.original)
                         .resizable()
                         .scaledToFill()
-                        .frame(width: geo.size.height * 0.3, height: geo.size.height * 0.15)
+                        .frame(width: geo.size.height * 0.25, height: geo.size.height * 0.14)
                         .clipShape(RoundedRectangle(cornerRadius: 20))
                         .shadow(radius: 10)
                 )