mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-14 15:43:29 +01:00
45 lines
986 B
Swift
45 lines
986 B
Swift
//
|
|
// Demo
|
|
// Copyright © 2020 John Rommel Estropia, Inc. All rights reserved.
|
|
|
|
import Combine
|
|
import CoreStore
|
|
import SwiftUI
|
|
|
|
// MARK: - Menu
|
|
|
|
extension Menu {
|
|
|
|
// MARK: - Menu.PlaceholderView
|
|
|
|
struct PlaceholderView: UIViewControllerRepresentable {
|
|
|
|
// MARK: UIViewControllerRepresentable
|
|
|
|
typealias UIViewControllerType = UIViewController
|
|
|
|
func makeUIViewController(context: Self.Context) -> UIViewControllerType {
|
|
|
|
return UIStoryboard(name: "LaunchScreen", bundle: nil).instantiateInitialViewController()!
|
|
}
|
|
|
|
func updateUIViewController(_ uiViewController: UIViewControllerType, context: Self.Context) {}
|
|
|
|
static func dismantleUIViewController(_ uiViewController: UIViewControllerType, coordinator: Void) {}
|
|
}
|
|
}
|
|
|
|
#if DEBUG
|
|
|
|
struct _Demo_Menu_PlaceholderView_Preview: PreviewProvider {
|
|
|
|
// MARK: PreviewProvider
|
|
|
|
static var previews: some View {
|
|
|
|
return Menu.PlaceholderView()
|
|
}
|
|
}
|
|
|
|
#endif
|