mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
Get album list from passed in state
This commit is contained in:
parent
edcfe49b19
commit
5f19a7401d
25
Persephone/Assets.xcassets/repeatButton.imageset/Contents.json
vendored
Normal file
25
Persephone/Assets.xcassets/repeatButton.imageset/Contents.json
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "repeatButton.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "repeatButton@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
},
|
||||
"properties" : {
|
||||
"template-rendering-intent" : "template"
|
||||
}
|
||||
}
|
||||
BIN
Persephone/Assets.xcassets/repeatButton.imageset/repeatButton.png
vendored
Normal file
BIN
Persephone/Assets.xcassets/repeatButton.imageset/repeatButton.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 299 B |
BIN
Persephone/Assets.xcassets/repeatButton.imageset/repeatButton@2x.png
vendored
Normal file
BIN
Persephone/Assets.xcassets/repeatButton.imageset/repeatButton@2x.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 573 B |
25
Persephone/Assets.xcassets/repeatButton1.imageset/Contents.json
vendored
Normal file
25
Persephone/Assets.xcassets/repeatButton1.imageset/Contents.json
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "repeatButton1.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "repeatButton1@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
},
|
||||
"properties" : {
|
||||
"template-rendering-intent" : "template"
|
||||
}
|
||||
}
|
||||
BIN
Persephone/Assets.xcassets/repeatButton1.imageset/repeatButton1.png
vendored
Normal file
BIN
Persephone/Assets.xcassets/repeatButton1.imageset/repeatButton1.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 337 B |
BIN
Persephone/Assets.xcassets/repeatButton1.imageset/repeatButton1@2x.png
vendored
Normal file
BIN
Persephone/Assets.xcassets/repeatButton1.imageset/repeatButton1@2x.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 639 B |
25
Persephone/Assets.xcassets/shuffleButton.imageset/Contents.json
vendored
Normal file
25
Persephone/Assets.xcassets/shuffleButton.imageset/Contents.json
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "shuffleButton.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "shuffleButton@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
},
|
||||
"properties" : {
|
||||
"template-rendering-intent" : "template"
|
||||
}
|
||||
}
|
||||
BIN
Persephone/Assets.xcassets/shuffleButton.imageset/shuffleButton.png
vendored
Normal file
BIN
Persephone/Assets.xcassets/shuffleButton.imageset/shuffleButton.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 353 B |
BIN
Persephone/Assets.xcassets/shuffleButton.imageset/shuffleButton@2x.png
vendored
Normal file
BIN
Persephone/Assets.xcassets/shuffleButton.imageset/shuffleButton@2x.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 719 B |
@ -19,7 +19,7 @@ func albumListReducer(action: Action, state: AlbumListState?) -> AlbumListState
|
||||
state.albums[action.albumIndex].coverArt = .loaded(action.coverArt)
|
||||
|
||||
case is ResetAlbumListCoverArtAction:
|
||||
state.albums = App.store.state.albumListState.albums.map {
|
||||
state.albums = state.albums.map {
|
||||
var album = $0
|
||||
switch album.coverArt {
|
||||
case .loaded(let coverArt):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user