Mercurial > public > geoquiz
annotate GeoQuiz/Helpers/CustomGradients.swift @ 8:e09959b4e4a8
fix bugs
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Thu, 06 Oct 2022 11:14:34 +0200 |
parents | f31a61462e7a |
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 } |