Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions Interceptor/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ struct ContentView: View {
@EnvironmentObject private var client: Tuberose
@Environment(\.scenePhase) private var scenePhase
@State private var selectedTab = 0
@StateObject private var tabNavigationAlignment = TabNavigationAlignment()
@StateObject private var fileDestinations = PluginFileDestinationController()
@AppStorage(CaptureAuthorization.key, store: CaptureAuthorization.defaults) private var consentVersion = 0

Expand Down Expand Up @@ -72,11 +71,6 @@ struct ContentView: View {
NavigationView(content: {
HomeView()
})
.background {
if #available(iOS 27, *) {
TabNavigationAlignmentObserver(alignment: tabNavigationAlignment)
}
}
.navigationBarTitleDisplayMode(.inline)
.introspect(.navigationSplitView, on: .iOS(.v17...), customize: { controller in
controller.preferredDisplayMode = .oneBesideSecondary
Expand All @@ -93,11 +87,6 @@ struct ContentView: View {
description: Text("EMPTY_SETTINGS_DESCRIPTION"))
.navigationBarTitleDisplayMode(.inline)
})
.background {
if #available(iOS 27, *) {
TabNavigationAlignmentObserver(alignment: tabNavigationAlignment)
}
}
.navigationBarTitleDisplayMode(.inline)
.introspect(.navigationSplitView, on: .iOS(.v17...), customize: { controller in
controller.preferredDisplayMode = .oneBesideSecondary
Expand All @@ -109,10 +98,6 @@ struct ContentView: View {
}
.tag(1)
})
.onChange(of: selectedTab) { tabNavigationAlignment.update() }
.introspect(.tabView, on: .iOS(.v27)) { tabView in
tabNavigationAlignment.configure(tabView)
}
.introspect(.tabView, on: .iOS(.v17, .v18, .v26, .v27)) { tabView in
// Change only selected tab items; the shared accent still colors primary buttons.
let selectedColor = UIColor { traits in
Expand Down
195 changes: 0 additions & 195 deletions Interceptor/Views/TabNavigationAlignment.swift

This file was deleted.