From 09407b266c0a4078659e7e521b1cffa16e5c5cbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Monz=C3=B3n?= Date: Sun, 22 Nov 2020 01:09:11 +0100 Subject: [PATCH] Added blurhash support --- Unsplasher/Model/Photos.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Unsplasher/Model/Photos.swift b/Unsplasher/Model/Photos.swift index ef680af..a21db3a 100644 --- a/Unsplasher/Model/Photos.swift +++ b/Unsplasher/Model/Photos.swift @@ -25,6 +25,7 @@ public struct Photo: Codable { public var likedByUser: Bool? public var location: Location? public let currentUserCollections: [Collection]? + public var blurhash: String? public var color: UIColor? { guard let colorString = hexColor else { @@ -49,6 +50,7 @@ public struct Photo: Codable { case likedByUser = "liked_by_user" case location case currentUserCollections = "current_user_collections" + case blurhash = "blur_hash" } }