mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
[AltWidget] Fixes compiling for iOS 16 and earlier
Also fixes unused variable warnings.
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user