Colors + Extension.swift
900 Bytes
//
// 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 GradientBlue {
static let left = UIColor(named: "Left")
static let right = UIColor(named: "Right")
}
}
extension CGColor {
enum BorderColor {
static let lightGrey = UIColor(named: "LightGreyBorderColor")?.cgColor
static let lightBlue = UIColor(named: "LightBlueBorderColor")?.cgColor
}
}