Enhance download notifications and settings; add support for live activities

- Updated notification body to use proper German quotation marks for download failure alerts.
- Refactored audio interruption handling in PlayerEngine to utilize MainActor.assumeIsolated for better performance.
- Introduced nonisolated properties for support and downloads directories in ProgressSyncManager.
- Improved FullHistoryView and MainView with additional toolbar items and alerts for download failures.
- Added new toggles in SettingsView for parallel downloads and mobile data usage.
- Created new color assets for the DownloadWidgetExtension and updated widget appearance.
- Implemented Info.plist for DownloadWidgetExtension to support widget functionality.
- Enabled live activities support in iOS Info.plist.
This commit is contained in:
Scarriffle
2026-06-08 19:32:54 +02:00
parent f053f1d320
commit 134482bb4a
23 changed files with 1104 additions and 224 deletions

View File

@@ -15,7 +15,7 @@ struct DownloadLiveActivityWidget: Widget {
// Expanded region shown when the user long-presses the island
DynamicIslandExpandedRegion(.leading) {
Image(systemName: "arrow.down.circle.fill")
.foregroundStyle(.blue)
.foregroundStyle(.green)
.font(.title2)
}
DynamicIslandExpandedRegion(.center) {
@@ -27,29 +27,32 @@ struct DownloadLiveActivityWidget: Widget {
DynamicIslandExpandedRegion(.bottom) {
VStack(spacing: 4) {
ProgressView(value: context.state.progress)
.tint(.blue)
.tint(.green)
HStack {
Text(bytesFormatted(context.state.bytesDownloaded))
.font(.caption2)
.foregroundStyle(.secondary)
.contentTransition(.numericText())
Spacer()
Text(percentFormatted(context.state.progress))
.font(.caption2.bold())
.monospacedDigit()
.contentTransition(.numericText())
}
}
}
} compactLeading: {
Image(systemName: "arrow.down.circle.fill")
.foregroundStyle(.blue)
.foregroundStyle(.green)
.font(.caption)
} compactTrailing: {
Text(percentFormatted(context.state.progress))
.font(.caption2.bold())
.monospacedDigit()
.contentTransition(.numericText())
} minimal: {
Image(systemName: "arrow.down.circle.fill")
.foregroundStyle(.blue)
.foregroundStyle(.green)
.font(.caption2)
}
}
@@ -65,7 +68,7 @@ struct DownloadLockScreenView: View {
VStack(alignment: .leading, spacing: 8) {
HStack(spacing: 8) {
Image(systemName: "arrow.down.circle.fill")
.foregroundStyle(.blue)
.foregroundStyle(.green)
Text(context.attributes.itemTitle)
.font(.subheadline.bold())
.lineLimit(1)
@@ -73,12 +76,14 @@ struct DownloadLockScreenView: View {
Text(percentFormatted(context.state.progress))
.font(.subheadline.bold())
.monospacedDigit()
.contentTransition(.numericText())
}
ProgressView(value: context.state.progress)
.tint(.blue)
.tint(.green)
Text(bytesFormatted(context.state.bytesDownloaded) + " heruntergeladen")
.font(.caption)
.foregroundStyle(.secondary)
.contentTransition(.numericText())
}
.padding()
}