mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
22 lines
377 B
Swift
22 lines
377 B
Swift
//
|
|
// SongItem.swift
|
|
// Persephone
|
|
//
|
|
// Created by Daniel Barber on 2019/2/20.
|
|
// Copyright © 2019 Dan Barber. All rights reserved.
|
|
//
|
|
|
|
import AppKit
|
|
|
|
struct QueueItem: Hashable {
|
|
var song: Song
|
|
var queuePos: Int
|
|
var isPlaying: Bool
|
|
|
|
func hash(into hasher: inout Hasher) {
|
|
hasher.combine(song)
|
|
hasher.combine(queuePos)
|
|
hasher.combine(isPlaying)
|
|
}
|
|
}
|