Last active
June 17, 2021 18:16
-
-
Save jamesrochabrun/bf15c92285f92a50320d878915fa7a20 to your computer and use it in GitHub Desktop.
Itunes Remote implementation.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1 | |
final class ItunesRemote: ObservableObject { | |
// 2 | |
struct ItunesCategorySection: IdentifiableHashable { | |
let sectionID: ItunesCategoryIdentifier | |
let cellIDs: [FeedItemViewModel] | |
var id: ItunesCategoryIdentifier { sectionID } | |
} | |
// 3 | |
private let service = ItunesClient() | |
// 4 | |
private var cancellables: Set<AnyCancellable> = [] | |
@Published var itunesSections: [ItunesSection] = [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment