File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Sora/Views/SettingsView/SettingsSubViews Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments