SpotifyRadar icon indicating copy to clipboard operation
SpotifyRadar copied to clipboard

Artist Images aren't being rendered on the Recently Played Tracks List

Open 5fcgdaeb opened this issue 5 years ago • 0 comments

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

  1. Run the app
  2. Click on recently played tracks
  3. 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

5fcgdaeb avatar Dec 21 '19 13:12 5fcgdaeb