Tuesday, February 3, 2026
HomeiOS Developmentios - The best way to take away clean area on high...

ios – The best way to take away clean area on high of Listing in SwiftUI

[ad_1]

That area is related to the NavigationView that your Listing is in – every view inside the “stack” of the navigation’s displayable views can set its personal title that may then get displayed in that spot.

If you are going to maintain that area unused, you may mitigate by forcing the navigation title to be in inline mode. That is what you see while you scroll down a listing and the large title shrinks and strikes up into the toolbar area, between the main and trailing toolbar objects.

To do that, add the .navigationBarDisplayMode modifier to your listing:

  // inside a NavigationView context
  Listing {
     // ...
  }
  .navigationBarTitleDisplayMode(.inline)

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments