Skip to content

Commit a4c5af1

Browse files
committed
fix(ios): keep nav bar visible on pushed workspace file routes
1 parent 0fc98a2 commit a4c5af1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

apps/ios/Sources/Design/AgentWorkspaceFilesScreen.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ struct AgentWorkspaceFilesScreen: View {
3737
.navigationTitle("Files")
3838
.navigationBarTitleDisplayMode(.inline)
3939
// Registered once at the section root; pushed directory levels resolve
40-
// through this single destination table.
40+
// through this single destination table. Direct sidebar routes hide the
41+
// nav bar for the custom header, so pushed levels restore it explicitly
42+
// to keep Back and the share toolbar reachable.
4143
.navigationDestination(for: Route.self) { route in
4244
switch route {
4345
case let .directory(path):
@@ -47,8 +49,10 @@ struct AgentWorkspaceFilesScreen: View {
4749
}
4850
.navigationTitle(Self.displayName(forPath: path))
4951
.navigationBarTitleDisplayMode(.inline)
52+
.toolbar(.visible, for: .navigationBar)
5053
case let .file(path):
5154
AgentWorkspaceFilePreview(agentId: self.agentId, path: path)
55+
.toolbar(.visible, for: .navigationBar)
5256
}
5357
}
5458
}

0 commit comments

Comments
 (0)