Mercurial > public > geoquiz
annotate GeoQuiz/Logic/CustomGradients.swift @ 3:4dbe0cd9dadc
first game prototype
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Thu, 22 Sep 2022 10:42:39 +0200 |
parents | 259a15f485c5 |
children |
rev | line source |
---|---|
0 | 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 { | |
1
259a15f485c5
fix bug with NavigationLink
Dennis C. M. <dennis@denniscm.com>
parents:
0
diff
changeset
|
25 Gradient(colors: [Color("MaizeCrayola"), Color("MiddleRed")]) |
0 | 26 } |
27 } |