mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
22 lines
546 B
Swift
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
|
|
}
|
|
|
|
}
|