mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-17 18:53:40 +01:00
[Widgets]: Enhanced to isolate operations from multiple views of same widget type
This commit is contained in:
@@ -39,7 +39,7 @@ struct AppDetailWidget: Widget
|
||||
|
||||
private struct AppDetailWidgetView: View
|
||||
{
|
||||
var entry: AppsEntry
|
||||
var entry: AppsEntry<Intent>
|
||||
|
||||
var body: some View {
|
||||
Group {
|
||||
@@ -200,11 +200,11 @@ private extension AppDetailWidgetView
|
||||
} timeline: {
|
||||
let expiredDate = Date().addingTimeInterval(1 * 60 * 60 * 24 * 7)
|
||||
let (altstore, _, _, longAltStore, _, _) = AppSnapshot.makePreviewSnapshots()
|
||||
AppsEntry(date: Date(), apps: [altstore])
|
||||
AppsEntry(date: Date(), apps: [longAltStore])
|
||||
AppsEntry<Any>(date: Date(), apps: [altstore])
|
||||
AppsEntry<Any>(date: Date(), apps: [longAltStore])
|
||||
|
||||
AppsEntry(date: expiredDate, apps: [altstore])
|
||||
AppsEntry<Any>(date: expiredDate, apps: [altstore])
|
||||
|
||||
AppsEntry(date: Date(), apps: [])
|
||||
AppsEntry(date: Date(), apps: [], isPlaceholder: true)
|
||||
AppsEntry<Any>(date: Date(), apps: [])
|
||||
AppsEntry<Any>(date: Date(), apps: [], isPlaceholder: true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user