From 9228c68cf9c90ca84821a4116742e5620209b6a1 Mon Sep 17 00:00:00 2001 From: Daniel Barber Date: Fri, 3 Apr 2020 12:05:26 -0400 Subject: [PATCH] Split CGColor extension There doesn't seem to be any overlap in the available methods for specifying a color on iOS or macOS. --- Mac/Components/Shared/Extensions/CGColor.swift | 14 ++++++++++++++ .../Components/Shared}/Extensions/CGColor.swift | 0 2 files changed, 14 insertions(+) create mode 100644 Mac/Components/Shared/Extensions/CGColor.swift rename {Shared => iOS/Components/Shared}/Extensions/CGColor.swift (100%) diff --git a/Mac/Components/Shared/Extensions/CGColor.swift b/Mac/Components/Shared/Extensions/CGColor.swift new file mode 100644 index 0000000..27d627c --- /dev/null +++ b/Mac/Components/Shared/Extensions/CGColor.swift @@ -0,0 +1,14 @@ +// +// NSColor.swift +// Persephone +// +// Created by Daniel Barber on 2019/2/16. +// Copyright © 2019 Dan Barber. All rights reserved. +// + +import CoreGraphics + +extension CGColor { + static let albumBorderColorLight = CGColor.black.copy(alpha: 0.15) + static let albumBorderColorDark = CGColor.white.copy(alpha: 0.15) +} diff --git a/Shared/Extensions/CGColor.swift b/iOS/Components/Shared/Extensions/CGColor.swift similarity index 100% rename from Shared/Extensions/CGColor.swift rename to iOS/Components/Shared/Extensions/CGColor.swift