Mercurial > public > geoquiz
comparison GeoQuiz/Logic/CustomGradients.swift @ 0:413e2d21333e
first commit
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Tue, 20 Sep 2022 08:13:26 +0200 |
parents | |
children | 259a15f485c5 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:413e2d21333e |
---|---|
1 // | |
2 // CustomGradients.swift | |
3 // GeoQuiz | |
4 // | |
5 // Created by Dennis Concepción Martín on 13/9/22. | |
6 // | |
7 | |
8 import Foundation | |
9 import SwiftUI | |
10 | |
11 extension ShapeStyle where Self == Gradient { | |
12 static var main: Gradient { | |
13 Gradient(colors: [Color("MayaBlue"), Color("RoyalLightBlue")]) | |
14 } | |
15 | |
16 static var secondary: Gradient { | |
17 Gradient(colors: [Color("AtomicTangerine"), Color("ChinaPink")]) | |
18 } | |
19 | |
20 static var tertiary: Gradient { | |
21 Gradient(colors: [Color("PinkLavender"), Color("BlueBell")]) | |
22 } | |
23 | |
24 static var quaternary: Gradient { | |
25 Gradient(colors: [Color("PinkLavender"), Color("Main2")]) | |
26 } | |
27 } |