[Widgets]: Enhanced to isolate operations from multiple views of same widget type

This commit is contained in:
Magesh K
2025-01-11 03:25:25 +05:30
parent f69b293004
commit e29d9f7904
12 changed files with 346 additions and 245 deletions

View File

@@ -8,7 +8,7 @@
/// Simulator data generator
#if DEBUG
#if targetEnvironment(simulator)
@available(iOS 17, *)
extension ActiveAppsTimelineProvider {
@@ -18,7 +18,7 @@ extension ActiveAppsTimelineProvider {
// this dummy data is for simulator (uncomment when testing ActiveAppsWidget pagination)
if (apps.count > 0){
let app = apps[0]
for i in 0..<10 {
for i in 1...10 {
let name = "\(app.name) - \(i)"
let x = AppSnapshot(name: name,
bundleIdentifier: app.bundleIdentifier,