Skip to content

Commit

Permalink
Fixlint
Browse files Browse the repository at this point in the history
  • Loading branch information
BPerlakiH authored and kelson42 committed Feb 14, 2025
1 parent c2c6975 commit 187a0a5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
5 changes: 4 additions & 1 deletion Views/LiveActivity/ActivityService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
15 changes: 10 additions & 5 deletions Widgets/DownloadsLiveActivity.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 187a0a5

Please sign in to comment.