SpotifyRadar
SpotifyRadar copied to clipboard
Artist Images aren't being rendered on the Recently Played Tracks List
Description
The artist images aren't being rendered on the Recently Played Tracks List; only the the name, artists and the date fields are there. This occurs because the Observable for RecentlyPlayedTracks
returns before the URLs are set for the tracks.
Expected Behavior
Artist images should be displayed underneath the album name.
Actual Behavior
Artist images are not displayed.
Steps to Reproduce the Problem
- Run the app
- Click on recently played tracks
- Artist images aren't being displayed in cells
Possible solution
Look into the scan
operator. You can look at NewReleasesViewModel.swift
for reference on how to use scan
to append the results of Observables with each other. The correct solution would involve waiting for each call to the Observable return before setting the URLs for the tracks.
Specifications
- XCode Version: 11