Mercurial > public > geoquiz
comparison GeoQuiz/Components/ColorExtension.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/CustomColors.swift@f31a61462e7a |
children | 1011e56b7832 |
comparison
equal
deleted
inserted
replaced
9:3540c7efc216 | 10:a793f33f05fb |
---|---|
1 // | |
2 // ColorExtension.swift | |
3 // GeoQuiz | |
4 // | |
5 // Created by Dennis Concepción Martín on 16/9/22. | |
6 // | |
7 | |
8 import Foundation | |
9 import SwiftUI | |
10 | |
11 extension ShapeStyle where Self == Color { | |
12 static var atomicTangerine: Color { | |
13 Color("AtomicTangerine") | |
14 } | |
15 | |
16 static var blueBell: Color { | |
17 Color("BlueBell") | |
18 } | |
19 | |
20 static var chinaPink: Color { | |
21 Color("ChinaPink") | |
22 } | |
23 | |
24 static var maizeCrayola: Color { | |
25 Color("MaizeCrayola") | |
26 } | |
27 | |
28 static var mayaBlue: Color { | |
29 Color("MayaBlue") | |
30 } | |
31 | |
32 static var middleRed: Color { | |
33 Color("MiddleRed") | |
34 } | |
35 | |
36 static var pinkLavender: Color { | |
37 Color("PinkLavender") | |
38 } | |
39 | |
40 static var royalLightBlue: Color { | |
41 Color("RoyalLightBlue") | |
42 } | |
43 } |