Files
Morgan Pretty 11231599db Further work on migrations and message pipeline refactoring
Refactored the AppDelegate from Objective C to Swift
Updated the HomeVC to use GRDB
Refactored a number of the Job types to be driven via GRDB and the new JobRunner
Fixed a bug where the LinkPreviewView wouldn't render correctly in dark mode
2022-04-21 16:42:35 +10:00

10 lines
319 B
Swift

// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
import Foundation
public extension Decodable {
static func decoded<CodingKeys: CodingKey>(with container: KeyedDecodingContainer<CodingKeys>, forKey key: CodingKeys) throws -> Self {
return try container.decode(Self.self, forKey: key)
}
}