|
|
|
|
@ -12,10 +12,10 @@ import CoreData |
|
|
|
|
extension AbstractSoundTimer { |
|
|
|
|
|
|
|
|
|
var playables: [any Playable] { |
|
|
|
|
if let soundList { |
|
|
|
|
if let playableIds { |
|
|
|
|
var playables: [any Playable] = [] |
|
|
|
|
var playableIds = soundList.components(separatedBy: idSeparator) |
|
|
|
|
for id in playableIds { |
|
|
|
|
let ids: [String] = playableIds.components(separatedBy: idSeparator) |
|
|
|
|
for id in ids { |
|
|
|
|
if let intId = numberFormatter.number(from: id)?.intValue, |
|
|
|
|
let sound = Sound(rawValue: intId) { |
|
|
|
|
playables.append(sound) |
|
|
|
|
|