HomeiOS DevelopmentLearn how to take away undesirable high padding from sheet with searchable...

Learn how to take away undesirable high padding from sheet with searchable navigationBarDrawer placement?


I’m attempting to do one thing just like the apple maps backside sheet, however utilizing a customized textfield appears suboptimal. Making use of searchable does add a system offered search bar to the sheet, however it’s positioned on the backside of the sheet no matter present detents. Putting it within the navigationbardrawer does precisely as needed however has a high padding that I can not eliminate it

Compact presentation of sheet, undesirable high padding proven:
Learn how to take away undesirable high padding from sheet with searchable navigationBarDrawer placement?

Medium detents’ brow;
enter image description here

.sheet(isPresented: $showSearch) {
    NavigationStack {
        Listing {
            Textual content("Brow")
            Textual content("Brow")
            Textual content("Brow")
            Textual content("Brow")
        }
        .searchable(textual content: $searchText, placement: .navigationBarDrawer,immediate: "Search...")
    }
    .ignoresSafeArea(.all)
    .presentationBackgroundInteraction(.enabled)
    .presentationDetents([.height(80), .medium, .large])
    .interactiveDismissDisabled(true)
}

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments