From 84462a197eca263e11f3ddb4cba59e2c3d384051 Mon Sep 17 00:00:00 2001 From: Kevin G Christiano Date: Wed, 8 Jan 2020 09:37:47 -0500 Subject: [PATCH] changed comment. --- MVMCoreUI/Models/Primitive Models/Color.swift | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/MVMCoreUI/Models/Primitive Models/Color.swift b/MVMCoreUI/Models/Primitive Models/Color.swift index 31206a5e..e4c0e4fa 100644 --- a/MVMCoreUI/Models/Primitive Models/Color.swift +++ b/MVMCoreUI/Models/Primitive Models/Color.swift @@ -9,16 +9,9 @@ import UIKit /* - Use case: - For the Codable model define a variable such as: - var color: UIColor - - In the decode initializer: - color = try typeContainer.decode(Color.self, forKey: .color).uiColor - - In the encode initializer: - try container.encodeIfPresent(Color(uiColor: color), forKey: .color) - + UIColor is not supported by Codable. This Color class + effectively turns UIColor into a primitive class like + Int and String and can be used the same. */ public final class Color: Codable { //--------------------------------------------------