self.fileSize = fileSize
}
var progress: Double {
return Double(self.downloadedSize...) / Double(self.fileSize)
}
mutating func increment() {
if downloadedSize < fileSize...: 10),
DataFile(id: 2, fileSize: 20),
DataFile(id: 3, fileSize: 5)
]...: 10),
DataFile(id: 2, fileSize: 20),
DataFile(id: 3, fileSize: 5)
]...: 10),
DataFile(id: 2, fileSize: 20),
DataFile(id: 3, fileSize: 5)
]