Remove music
All checks were successful
Ascently - Docs Deploy / build-and-push (push) Successful in 3m57s

This commit is contained in:
2026-02-01 17:55:51 -07:00
parent aa08892e75
commit 3874703fcb
10 changed files with 346 additions and 626 deletions

View File

@@ -122,7 +122,6 @@ struct SessionsList: View {
{
Section {
ActiveSessionBanner(session: activeSession, gym: gym)
.environmentObject(MusicService.shared)
.padding(.horizontal, 16)
.listRowInsets(EdgeInsets(top: 16, leading: 0, bottom: 24, trailing: 0))
.listRowBackground(Color.clear)
@@ -184,7 +183,7 @@ struct ActiveSessionBanner: View {
let session: ClimbSession
let gym: Gym
@EnvironmentObject var dataManager: ClimbingDataManager
@EnvironmentObject var musicService: MusicService
@State private var navigateToDetail = false
var body: some View {
@@ -210,18 +209,7 @@ struct ActiveSessionBanner: View {
.monospacedDigit()
}
if musicService.isMusicEnabled && musicService.isAuthorized {
Button(action: {
musicService.togglePlayback()
}) {
HStack(spacing: 4) {
Image(systemName: musicService.isPlaying ? "pause.fill" : "play.fill")
.font(.caption)
}
.foregroundColor(.pink)
.padding(.top, 2)
}
}
}
.frame(maxWidth: .infinity, alignment: .leading)
.contentShape(Rectangle())