Reloads widget timelines on app launch

This commit is contained in:
Riley Testut
2023-09-08 15:04:03 -05:00
committed by Magesh K
parent f39ebfb905
commit 021b49c436

View File

@@ -10,6 +10,7 @@ import UIKit
import Roxas
import EmotionalDamage
import minimuxer
import WidgetKit
import AltStoreCore
import UniformTypeIdentifiers
@@ -305,6 +306,8 @@ extension LaunchViewController
self.updateKnownSources()
WidgetCenter.shared.reloadAllTimelines()
// Add view controller as child (rather than presenting modally)
// so tint adjustment + card presentations works correctly.
self.destinationViewController.view.frame = CGRect(x: 0, y: 0, width: self.view.bounds.width, height: self.view.bounds.height)