initial pre-viable version of watch app
This commit is contained in:
15
Workouts/_ATTIC_/Cepo/NavigationStackChecker.swift
Normal file
15
Workouts/_ATTIC_/Cepo/NavigationStackChecker.swift
Normal file
@ -0,0 +1,15 @@
|
||||
import SwiftUI
|
||||
|
||||
struct NavigationStackChecker: UIViewControllerRepresentable {
|
||||
@Binding var isInside: Bool
|
||||
|
||||
func makeUIViewController(context: Context) -> UIViewController {
|
||||
let viewController = UIViewController()
|
||||
DispatchQueue.main.async {
|
||||
self.isInside = viewController.navigationController != nil
|
||||
}
|
||||
return viewController
|
||||
}
|
||||
|
||||
func updateUIViewController(_ uiViewController: UIViewController, context: Context) {}
|
||||
}
|
Reference in New Issue
Block a user