mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-19 23:52:09 +00:00
Update SettingsViewPlayer.swift
This commit is contained in:
parent
9bbd18574b
commit
343a522be0
1 changed files with 2 additions and 2 deletions
|
|
@ -305,10 +305,10 @@ struct SettingsViewPlayer: View {
|
|||
}
|
||||
|
||||
SettingsSection(title: NSLocalizedString("Progress bar Marker Color", comment: "")) {
|
||||
ColorPicker(NSLocalizedString("Segments Color", comment: ""), selection: Binding(
|
||||
ColorPicker(NSLocalizedString("Segments Color", comment: ""), selection: Binding<Color>(
|
||||
get: {
|
||||
if let data = UserDefaults.standard.data(forKey: "segmentsColorData"),
|
||||
let uiColor = try? NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data) as? UIColor {
|
||||
let uiColor = try? NSKeyedUnarchiver.unarchivedObject(ofClass: UIColor.self, from: data) {
|
||||
return Color(uiColor)
|
||||
}
|
||||
return .yellow
|
||||
|
|
|
|||
Loading…
Reference in a new issue