0

UINavigationBar scrolling appearance behaviour is not working properly in one screen where i use UITableView within UIStackView. In other screens where Only UITableView used there Scrolling behaviour is working properly and underLine separator is visible.

  • Without UIStackView, where navigationBar working properly

Screen's visible design in the Device.

WithouUIStackView

StoryBoard UI of above screenshot, Games Screen.

UIStoryBoard

As above ScreenShot when we scroll to Top Edge, there's a visible underline to the NavigationBar.

  • UITableView within UIStackView, where I'm getting issue

StoryBoard Interface

LibraryVC StoryBoard

When i set UIStackView.top = superview.top

Transparent Nav

When i set UIStackView.top = safeArea.top

Hard white Nav

  • I've applied multiple solutions from Various source, but none of Any is working for me.

Also tried below solutions.

  1. tab navigation bar changes after upgrading to xcode 13 ios 15
  2. iOS 15 Navigation Bar Transparent
  3. Navigation bar is transparent when scrolling starts in iOS15 only
  4. Transparent iOS navigation bar
  5. iOS 15 Navigation Bar Transparent issue
steveSarsawa
  • 1,559
  • 2
  • 14
  • 31
  • Read the docs for [`UINavigationBar scrollEdgeAppearance`](https://developer.apple.com/documentation/uikit/uinavigationbar/3198027-scrolledgeappearance?language=objc). The difference you see in your two cases is that the first has a scroll view (a table view is a scroll view). You don't have a scrollview in your stack view setup. – HangarRash May 25 '23 at 14:49
  • @HangarRash I've updated screenshot, Now u can see? Scrollview within stackview – steveSarsawa May 26 '23 at 04:56
  • But the the scroll view isn't the view controller's view. You just need to set the nav bar's `standardAppearance` to suit your needs. – HangarRash May 26 '23 at 05:02

1 Answers1

0

I've resolved the issue by changing order of the controls stack, just putted UITableView outSide of the UIStackView and it's working perfectly as expected.

  • UIStoryBoard

StoryBoard

  • Layout visibility

Visible Layout

steveSarsawa
  • 1,559
  • 2
  • 14
  • 31