From 11a99d4d14c9d1a83a03e12b151d372b11fa9e8e Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Wed, 7 Feb 2024 11:48:53 -0700 Subject: remove deprecated api --- iGopherBrowser/SettingsView.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/iGopherBrowser/SettingsView.swift b/iGopherBrowser/SettingsView.swift index 9ee9e62..11081a3 100644 --- a/iGopherBrowser/SettingsView.swift +++ b/iGopherBrowser/SettingsView.swift @@ -21,8 +21,7 @@ extension Color: RawRepresentable { let color = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data) as? NSColor ?? .black #else - let color = - try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data) as? UIColor ?? .black + let color = try NSKeyedUnarchiver.unarchivedObject(ofClass: UIColor.self, from: data) ?? .black #endif self = Color(color) } catch { -- cgit v1.2.3