Files
2021-06-03 17:59:25 +06:00

26 lines
645 B
Swift

//
// ApplicationDelegate+Inception.swift
// Privado
//
// Created by Jura on 10/10/19.
// Copyright © 2019 Omicronmedia. All rights reserved.
//
import Foundation
#if os(macOS)
import AppKit
#elseif os(iOS)
import UIKit
#endif
func openApplicationRoute(_ route: Route) {
DispatchQueue.main.async {
#if os(macOS)
guard let appDelegateInput = NSApplication.shared.delegate as? ApplicationDelegateInput else { return }
#elseif os(iOS)
guard let appDelegateInput = UIApplication.shared.delegate as? ApplicationDelegateInput else { return }
#endif
appDelegateInput.openRoute(route)
}
}