From 75987d74aa6ccbc639361ea017bff070252d9ce6 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Sun, 7 Jan 2024 12:52:45 +0100 Subject: [PATCH] Fix extensions recent tags --- IceCubesShareExtension/ShareViewController.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/IceCubesShareExtension/ShareViewController.swift b/IceCubesShareExtension/ShareViewController.swift index 00a4c913..dd0c316f 100644 --- a/IceCubesShareExtension/ShareViewController.swift +++ b/IceCubesShareExtension/ShareViewController.swift @@ -6,6 +6,7 @@ import Network import StatusKit import SwiftUI import UIKit +import Models class ShareViewController: UIViewController { override func viewDidLoad() { @@ -33,6 +34,12 @@ class ShareViewController: UIViewController { .environment(account) .environment(theme) .environment(instance) + .modelContainer(for: [ + Draft.self, + LocalTimeline.self, + TagGroup.self, + RecentTag.self, + ]) .tint(theme.tintColor) .preferredColorScheme(colorScheme == .light ? .light : .dark) let childView = UIHostingController(rootView: view)