Migrate to SwiftUIIntrospect

This commit is contained in:
Arkadiusz Fal
2023-09-26 17:35:08 +02:00
parent 3edfa5dfe7
commit 2ef692edb8
2 changed files with 2 additions and 18 deletions

View File

@@ -1,7 +1,7 @@
import Defaults
import SwiftUI
#if os(iOS)
import Introspect
import SwiftUIIntrospect
#endif
struct AppSidebarNavigation: View {
@@ -15,7 +15,7 @@ struct AppSidebarNavigation: View {
var body: some View {
#if os(iOS)
content.introspectViewController { viewController in
content.introspect(.viewController, on: .iOS(.v15, .v16, .v17)) { viewController in
// workaround for an empty supplementary view on launch
// the supplementary view is determined by the default selection inside the
// primary view, but the primary view is not loaded so its selection is not read