Skip to content

Commit 343a522

Browse files
committed
Update SettingsViewPlayer.swift
1 parent 9bbd185 commit 343a522

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sora/Views/SettingsView/SettingsSubViews/SettingsViewPlayer.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,10 @@ struct SettingsViewPlayer: View {
305305
}
306306

307307
SettingsSection(title: NSLocalizedString("Progress bar Marker Color", comment: "")) {
308-
ColorPicker(NSLocalizedString("Segments Color", comment: ""), selection: Binding(
308+
ColorPicker(NSLocalizedString("Segments Color", comment: ""), selection: Binding<Color>(
309309
get: {
310310
if let data = UserDefaults.standard.data(forKey: "segmentsColorData"),
311-
let uiColor = try? NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data) as? UIColor {
311+
let uiColor = try? NSKeyedUnarchiver.unarchivedObject(ofClass: UIColor.self, from: data) {
312312
return Color(uiColor)
313313
}
314314
return .yellow

0 commit comments

Comments
 (0)