Please enable JavaScript.
Coggle requires JavaScript to display documents.
iTunesClient (Album Detail View (AlbumDetailController (display the…
iTunesClient
Album Detail View
-
-
SongCellViewModel
With the received data of songs from the model "Song", it processes runtime to display as a real runtime
AlbumDetailDataSource
It has a medium property to connect between the AlbumListController and itself, which stores the data of songs in the selected album
By using SongCellViewModel, display the information of the selected song in the table view
To give a header and some space in the song list, a function is added
AlbumDetailController
-
-
-
in the function "configure", display the data retrieved from dataSource in each label
Album List View
AlbumListDataSource
It has a property that contains the information of the selected album by the user, which is retrieved from the SearchResultsController by using segue
-
-
By using the function "configure" in AlbumCell, display the converted data
-
AlbumListController
-
This dataSource uses the function in the AlbumDataSource, which returns the selected album
By using the dataSource and its function, it receives the selected row by the user in the table view.
With the row number, get the data of a single album which the user has chosen
By using segue, transfer the data of the selected album to AlbumDetailController
-
-
Search Bar
SearchResultsDataSource
- Without a view, it directly displays the data of an artist searched by the user.
-
-
SearchResultsController
-
-
func prepare(for segue: UIStoryboardSegue, sender: Any?)
By using segue, this function transfers the data of the array of ablums which contains fake data to AlbumListController's property.
-