mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-22 02:52:39 -04:00
Fixlint
This commit is contained in:
parent
c2c69758b4
commit
187a0a5782
@ -150,7 +150,10 @@ final class ActivityService {
|
||||
}
|
||||
}
|
||||
|
||||
private func activityState(from state: [UUID: DownloadState], downloadTimes: [UUID: CFTimeInterval]) async -> DownloadActivityAttributes.ContentState {
|
||||
private func activityState(
|
||||
from state: [UUID: DownloadState],
|
||||
downloadTimes: [UUID: CFTimeInterval]
|
||||
) async -> DownloadActivityAttributes.ContentState {
|
||||
var titles: [UUID: String] = [:]
|
||||
for key in state.keys {
|
||||
titles[key] = await getDownloadTitle(for: key)
|
||||
|
@ -35,11 +35,16 @@ struct DownloadsLiveActivity: Widget {
|
||||
.font(.headline)
|
||||
.bold()
|
||||
HStack {
|
||||
Text(timerInterval: Date.now...Date(timeInterval: context.state.estimatedTimeLeft, since: .now))
|
||||
.lineLimit(1)
|
||||
.multilineTextAlignment(.leading)
|
||||
.font(.caption)
|
||||
.tint(.secondary)
|
||||
Text(
|
||||
timerInterval: Date.now...Date(
|
||||
timeInterval: context.state.estimatedTimeLeft,
|
||||
since: .now
|
||||
)
|
||||
)
|
||||
.lineLimit(1)
|
||||
.multilineTextAlignment(.leading)
|
||||
.font(.caption)
|
||||
.tint(.secondary)
|
||||
Text(context.state.progressDescription)
|
||||
.lineLimit(1)
|
||||
.multilineTextAlignment(.leading)
|
||||
|
Loading…
x
Reference in New Issue
Block a user