Mercurial > public > geoquiz
comparison GeoQuiz/Components/GradientExtension.swift @ 10:a793f33f05fb
refactor code and fix layout
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Sat, 08 Oct 2022 21:36:40 +0200 |
parents | GeoQuiz/Helpers/CustomGradients.swift@f31a61462e7a |
children |
comparison
equal
deleted
inserted
replaced
9:3540c7efc216 | 10:a793f33f05fb |
---|---|
1 // | |
2 // GradientExtension.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("MaizeCrayola"), Color("MiddleRed")]) | |
26 } | |
27 } |