Fix extensions recent tags

This commit is contained in:
Thomas Ricouard 2024-01-07 12:52:45 +01:00
parent 6aae6f7e40
commit 75987d74aa

View file

@ -6,6 +6,7 @@ import Network
import StatusKit import StatusKit
import SwiftUI import SwiftUI
import UIKit import UIKit
import Models
class ShareViewController: UIViewController { class ShareViewController: UIViewController {
override func viewDidLoad() { override func viewDidLoad() {
@ -33,6 +34,12 @@ class ShareViewController: UIViewController {
.environment(account) .environment(account)
.environment(theme) .environment(theme)
.environment(instance) .environment(instance)
.modelContainer(for: [
Draft.self,
LocalTimeline.self,
TagGroup.self,
RecentTag.self,
])
.tint(theme.tintColor) .tint(theme.tintColor)
.preferredColorScheme(colorScheme == .light ? .light : .dark) .preferredColorScheme(colorScheme == .light ? .light : .dark)
let childView = UIHostingController(rootView: view) let childView = UIHostingController(rootView: view)