swiftui-multiplatform/ActionExtension-iOS/ActionViewController.swift
2021-11-19 15:41:54 -05:00

22 lines
546 B
Swift

import SwiftUI
class ActionViewController: UIViewController {
let moc = LocalStorageManager.standard.container.viewContext
override var prefersStatusBarHidden: Bool { true }
override func viewDidLoad() {
super.viewDidLoad()
let contentView = ContentView()
.environment(\.extensionContext, extensionContext)
.environment(\.managedObjectContext, moc)
view = UIHostingView(rootView: contentView)
view.isOpaque = true
view.backgroundColor = .systemBackground
}
}