this repo has no description
at main 25 lines 671 B view raw
1#if os(iOS) 2import ActivityKit 3import Foundation 4 5struct DownloadActivityAttributes: ActivityAttributes { 6 public struct ContentState: Codable, Hashable { 7 var progress: Double 8 var downloadedBlobs: Int 9 var totalBlobs: Int? 10 var accountHandle: String 11 var isPaused: Bool 12 var status: DownloadStatus 13 14 enum DownloadStatus: String, Codable { 15 case fetchingData = "Fetching repository data..." 16 case downloading = "Downloading" 17 case paused = "Paused" 18 case completed = "Completed" 19 } 20 } 21 22 var accountDid: String 23 var accountHandle: String 24} 25#endif