-
-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework recent books widget to use same provider as last played
- Loading branch information
1 parent
658f982
commit 1fed5e4
Showing
8 changed files
with
105 additions
and
74 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// LastPlayedModel.swift | ||
// BookPlayerWidgetsPhone | ||
// | ||
// Created by Gianni Carlo on 1/10/24. | ||
// Copyright © 2024 Tortuga Power. All rights reserved. | ||
// | ||
|
||
import BookPlayerKit | ||
import Foundation | ||
|
||
struct LastPlayedModel { | ||
let relativePath: String? | ||
let title: String? | ||
let isPlaying: Bool | ||
let theme: SimpleTheme | ||
|
||
init(item: WidgetLibraryItem?, isPlaying: Bool, theme: SimpleTheme) { | ||
self.relativePath = item?.relativePath | ||
self.title = item?.title | ||
self.isPlaying = isPlaying | ||
self.theme = theme | ||
} | ||
} |
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
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
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
Oops, something went wrong.