Setting icon indicating copy to clipboard operation
Setting copied to clipboard

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

Open waelsaad opened this issue 1 year ago • 0 comments

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))
        }

waelsaad avatar Sep 15 '23 00:09 waelsaad