Skip to content

go to root without animation #100

@videni

Description

@videni

My case is a little different, root -> folder -> sub folder ->sub sub folder, sometimes a user is in a deep sub folder, and he goes to root directly. Is there any way to disable the animation please? Here is a related closed issue #91, but it is not suitable for my case.

VStack(spacing: 0) {
            HomeMenuBar()
                .frame(height: topViewHeight)
                .edgesIgnoringSafeArea(.top)
            FlowStack($viewModel.routes, withNavigation: true) {
                HomeContentAreaView(
                    folder: Content.from(ProjectModel()),
                    query: $viewModel.query,
                    isMultipleSelectionActive: $viewModel.isMultipleSelectionActive,
                    layout: $viewModel.layout,
                    folderRefreshPublisher: viewModel.folderRefreshPublisher
                )
                .flowDestination(for: Content.self) { content in
                    Group {
                        if content.project.isFolder {
                            HomeContentAreaView(
                                folder: content,
                                query: $viewModel.query,
                                isMultipleSelectionActive: $viewModel.isMultipleSelectionActive,
                                layout: $viewModel.layout,
                                folderRefreshPublisher: viewModel.folderRefreshPublisher
                            )
                        } else {
                            ProjectView(projectId: content.project.id)
                        }
                    }
                }
            }
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions