Skip to content

Instantly share code, notes, and snippets.

@chriswebb09
Created May 11, 2017 15:27
Show Gist options
  • Select an option

  • Save chriswebb09/2febfb9b1ddfc6d0e7656820d34e04dd to your computer and use it in GitHub Desktop.

Select an option

Save chriswebb09/2febfb9b1ddfc6d0e7656820d34e04dd to your computer and use it in GitHub Desktop.
import UIKit
class PlaylistItem {
var track: iTrack?
var next: PlaylistItem?
weak var previous: PlaylistItem?
}
extension PlaylistItem: Equatable {
static func ==(lhs: PlaylistItem, rhs: PlaylistItem) -> Bool {
return lhs.track!.previewUrl! == rhs.track!.previewUrl!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment