Mercurial > public > geoquiz
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/GeoQuiz/Logic/CustomGradients.swift Tue Sep 20 08:13:26 2022 +0200 @@ -0,0 +1,27 @@ +// +// CustomGradients.swift +// GeoQuiz +// +// Created by Dennis Concepción Martín on 13/9/22. +// + +import Foundation +import SwiftUI + +extension ShapeStyle where Self == Gradient { + static var main: Gradient { + Gradient(colors: [Color("MayaBlue"), Color("RoyalLightBlue")]) + } + + static var secondary: Gradient { + Gradient(colors: [Color("AtomicTangerine"), Color("ChinaPink")]) + } + + static var tertiary: Gradient { + Gradient(colors: [Color("PinkLavender"), Color("BlueBell")]) + } + + static var quaternary: Gradient { + Gradient(colors: [Color("PinkLavender"), Color("Main2")]) + } +}