mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Refactored refresh progress so that it doesn't crash on the mac anymore
This commit is contained in:
@@ -38,18 +38,3 @@ struct RefreshProgressView: View {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
struct RefreshProgressView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
Group {
|
||||
RefreshProgressView()
|
||||
.environmentObject(refreshProgressModel(lastRefreshDate: nil, tasksCompleted: 1, totalTasks: 2))
|
||||
.previewDisplayName("Refresh in progress")
|
||||
|
||||
RefreshProgressView()
|
||||
.environmentObject(refreshProgressModel(lastRefreshDate: Date(timeIntervalSinceNow: -120.0), tasksCompleted: 0, totalTasks: 0))
|
||||
.previewDisplayName("Last refreshed with date")
|
||||
}
|
||||
.previewLayout(.sizeThatFits)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user