19 lines
337 B
Swift
19 lines
337 B
Swift
import Foundation
|
|
|
|
public enum PlaybackRepeatMode: String, Codable, CaseIterable, Hashable, Sendable {
|
|
case off
|
|
case all
|
|
case one
|
|
|
|
public var nextMode: PlaybackRepeatMode {
|
|
switch self {
|
|
case .off:
|
|
.all
|
|
case .all:
|
|
.one
|
|
case .one:
|
|
.off
|
|
}
|
|
}
|
|
}
|