Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hiding search by default placement: .navigationBarDrawer(displayMode: .automatic)) #27

Open
waelsaad opened this issue Sep 15, 2023 · 0 comments

Comments

@waelsaad
Copy link

waelsaad commented Sep 15, 2023

Hi, thank you for this nice project. I am just wondering about the possibility of hiding the search by default and make it visible when the user starts to scroll just like in the Settings.app.

I tried to modify the main view in SettingStack struct as below but didn't work, usually it does. Any other changes I need to do?

        .if(isSearchable) { view in
            view
                .searchable(text: $settingViewModel.searchText, placement: .navigationBarDrawer(displayMode: .automatic))
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant