From b692a2ff74208abfc583ad4b58f90e85a3bde245 Mon Sep 17 00:00:00 2001 From: Quentin Jin Date: Wed, 4 Sep 2019 23:44:37 +0800 Subject: [PATCH] use enum as namespace, as Apple does in Combine --- KakaJSON/Convert/Values.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KakaJSON/Convert/Values.swift b/KakaJSON/Convert/Values.swift index b5af10b..f601ee7 100644 --- a/KakaJSON/Convert/Values.swift +++ b/KakaJSON/Convert/Values.swift @@ -11,7 +11,7 @@ import Foundation import CoreGraphics #endif -public struct Values { +public enum Values { static func value(_ val: Any?, _ type: Any.Type, _ defaultValue: @autoclosure () -> Any? = nil) -> Any? {