Colors + Extension.swift
1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// Colors + extension.swift
// InterQR-Internship
//
// Created by Дмитрий Тимофеев on 19.06.2022.
//
import Foundation
import UIKit
extension UIColor {
enum TextColor {
static let darkBlue = UIColor(named: "DarkBlueText")
static let lightGrey = UIColor(named: "LightGreyText")
static let redError = UIColor(named: "RedErrorText")
}
enum TextFieldColor {
static let general = UIColor(named: "GeneralTextField")
static let error = UIColor(named: "ErrorTextField")
}
enum Background {
static let lightGrey = UIColor(named: "LightGreyBackground")
}
}
extension CGColor {
enum BorderColor {
static let lightGrey = UIColor(named: "LightGreyBorderColor")?.cgColor
static let lightBlue = UIColor(named: "LightBlueBorderColor")?.cgColor
}
enum GradientBlue {
static let left = UIColor(named: "Left")?.cgColor
static let right = UIColor(named: "Right")?.cgColor
}
}