diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2024-02-07 11:48:53 -0700 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2024-02-07 11:48:53 -0700 |
commit | 11a99d4d14c9d1a83a03e12b151d372b11fa9e8e (patch) | |
tree | d529c4eebc83dd45d1abf4112083f790eb95a81a | |
parent | f973e8f1c1660c77bd067e33871fbef46a3ea844 (diff) |
remove deprecated api
-rw-r--r-- | iGopherBrowser/SettingsView.swift | 3 |
1 files changed, 1 insertions, 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 { |