Compact mini player only with inline tab bar
This commit is contained in:
1 parent
5fedbf2f58
commit
4db0f2f8ff
6 files changed
+1
-27
No files matched your search
@@ -20,7 +20,6 @@ final class PlayerManager: ObservableObject {
|
||||
@Published private(set) var elapsedTime: TimeInterval = 0
|
||||
@Published private(set) var duration: TimeInterval = 0
|
||||
@Published private(set) var errorMessage: String?
|
||||
@Published private(set) var isMiniPlayerCompact = false
|
||||
@Published var repeatMode: PlayerRepeatMode = .off {
|
||||
didSet { applyRepeatMode() }
|
||||
}
|
||||
@@ -80,8 +79,6 @@ final class PlayerManager: ObservableObject {
|
||||
func play(_ tracks: [Track], startingAt index: Int = 0, shuffled: Bool = false) {
|
||||
guard !tracks.isEmpty else { clear(); return }
|
||||
guard tracks.indices.contains(index) else { return }
|
||||
isMiniPlayerCompact = false
|
||||
|
||||
let orderedTracks: [Track]
|
||||
if shuffled {
|
||||
let selected = tracks[index]
|
||||
@@ -205,10 +202,6 @@ final class PlayerManager: ObservableObject {
|
||||
return apiConfiguration.mediaURL(for: album.file)
|
||||
}
|
||||
|
||||
func compactMiniPlayerForDownwardScroll() {
|
||||
isMiniPlayerCompact = true
|
||||
}
|
||||
|
||||
func shuffleUpcoming() {
|
||||
let currentIndex = player.currentIndex
|
||||
guard currentIndex >= 0, player.items.count - currentIndex > 2 else { return }
|
||||
|
||||
Reference in new issue
Block a user