|
|
@@ -9,7 +9,7 @@ import Foundation
|
|
|
import SwiftData
|
|
|
internal import Combine
|
|
|
|
|
|
-typealias URLHintArray = [URLHint]
|
|
|
+typealias CodableArray = [URLHint]
|
|
|
|
|
|
/**
|
|
|
* @brief Provides a UserDefaults-compatibiliy layer for Array<URLHint> that
|
|
|
@@ -23,10 +23,10 @@ typealias URLHintArray = [URLHint]
|
|
|
* The \@retroactive guards against the Swift developers changing Array<T> to
|
|
|
* comply w/ RawRepresentable in the future
|
|
|
*/
|
|
|
-extension URLHintArray : @retroactive RawRepresentable {
|
|
|
+extension CodableArray : @retroactive RawRepresentable {
|
|
|
public init?(rawValue: String) {
|
|
|
guard let data = rawValue.data(using: .utf8),
|
|
|
- let result = try? JSONDecoder().decode(URLHintArray.self, from: data)
|
|
|
+ let result = try? JSONDecoder().decode(CodableArray.self, from: data)
|
|
|
else {
|
|
|
return nil
|
|
|
}
|