diff GeoQuiz/Helpers/CustomGradients.swift @ 5:f31a61462e7a

add sound effects
author Dennis C. M. <dennis@denniscm.com>
date Sat, 24 Sep 2022 12:02:09 +0100
parents GeoQuiz/Logic/CustomGradients.swift@259a15f485c5
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/GeoQuiz/Helpers/CustomGradients.swift	Sat Sep 24 12:02:09 2022 +0100
@@ -0,0 +1,27 @@
+//
+//  CustomGradients.swift
+//  GeoQuiz
+//
+//  Created by Dennis Concepción Martín on 13/9/22.
+//
+
+import Foundation
+import SwiftUI
+
+extension ShapeStyle where Self == Gradient {
+    static var main: Gradient {
+        Gradient(colors: [Color("MayaBlue"), Color("RoyalLightBlue")])
+    }
+    
+    static var secondary: Gradient {
+        Gradient(colors: [Color("AtomicTangerine"), Color("ChinaPink")])
+    }
+    
+    static var tertiary: Gradient {
+        Gradient(colors: [Color("PinkLavender"), Color("BlueBell")])
+    }
+    
+    static var quaternary: Gradient {
+        Gradient(colors: [Color("MaizeCrayola"), Color("MiddleRed")])
+    }
+}