[AltWidget] Fixes compiling for iOS 16 and earlier

Also fixes unused variable warnings.
This commit is contained in:
Riley Testut
2023-12-07 16:39:13 -06:00
committed by Magesh K
parent cccbe3a80b
commit 142b9c6810
3 changed files with 5 additions and 1 deletions

View File

@@ -171,11 +171,12 @@ private extension AppDetailWidgetView
}
}
@available(iOS 17, *)
#Preview(as: .systemSmall) {
AppDetailWidget()
} timeline: {
let expiredDate = Date().addingTimeInterval(1 * 60 * 60 * 24 * 7)
let (altstore, delta, clip, _, longDelta, _) = AppSnapshot.makePreviewSnapshots()
let (altstore, delta, _, _, longDelta, _) = AppSnapshot.makePreviewSnapshots()
AppsEntry(date: Date(), apps: [altstore])
AppsEntry(date: Date(), apps: [delta])