Skip to content

Commit

Permalink
Fix horizontal orientation in PageView
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanov91 committed Nov 15, 2022
1 parent b416351 commit b72441f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ public struct ModalNavigationBar<LeadingBar: View, TrailingBar: View, BottomBar:

Spacer()
}

}.frame(maxHeight: headerHeight)
}
.frame(maxHeight: headerHeight)
.padding(.leading, screenSize.safeAreaLeading)
.padding(.trailing, screenSize.safeAreaTrailing)

Rectangle()
.fill(Color.surfacePrimary)
Expand Down Expand Up @@ -108,6 +110,8 @@ public struct ModalNavigationBar<LeadingBar: View, TrailingBar: View, BottomBar:

bottomBar()
}
.padding(.leading, screenSize.safeAreaLeading)
.padding(.trailing, screenSize.safeAreaTrailing)
}
.padding(.top, modalityPresent ? screenSize.safeAreaTop + 20 : 20)
.padding(.horizontal, 20)
Expand Down

0 comments on commit b72441f

Please sign in to comment.