mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Migrate to SwiftUIIntrospect
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user