feat(ios): add iOS 26+ continued processing and Live Activities (#1514)

This commit is contained in:
UltraGeek0102 authored and GitHub committed 2026-09-15 22:49:11 +08:00
1 parent cee5f3336e
commit e47a20a1bd
18 files changed
+2983 -3

No files matched your search

@@ -0,0 +1,28 @@
import ActivityKit
import Foundation
@available(iOS 16.2, *)
struct GopeedDownloadAttributes: ActivityAttributes {
struct ContentState: Codable, Hashable {
// Real confirmed progress.
var progress: Double
var downloaded: Int64
var total: Int64
var speed: Int64
var status: String
// Used by the self-moving estimated progress bar.
var estimatedStart: Date
var estimatedEnd: Date
var usesEstimatedProgress: Bool
}
// Static properties.
var taskId: String
var fileName: String
var generation: String
}