feat(mac,ios,playback,store): initial macos implementation

This commit is contained in:
hh committed 2026-09-23 04:56:48 +02:00
1 parent e5bb559d7f
commit d2d7166cf0
72 files changed
+4452 -318

No files matched your search

@@ -5,7 +5,24 @@ public enum AlbumSort: String, CaseIterable, Sendable {
case recentlyAdded, title, artist, year
}
public enum SearchHit: Identifiable, Hashable, Codable, Sendable {
case artist(Artist)
case album(Album)
case track(Track)
case playlist(Playlist)
public var id: EntityID {
switch self {
case let .artist(artist): artist.id
case let .album(album): album.id
case let .track(track): track.id
case let .playlist(playlist): playlist.id
}
}
}
public struct SearchResults: Sendable {
public var top: [SearchHit] = []
public var artists: [Artist] = []
public var albums: [Album] = []
public var tracks: [Track] = []