Заголовок панели навигации работает нормально на устройстве iPhone 7 plus, но в iphoneXR заголовок панели навигации частично скрыт.

Ниже приведен код, используемый для показать этот экран. LoginView и ResetView определены в отдельном файле
var body: some View {
LoadingView(isShowing: .constant(self.isShowLoadingView)) {
VStack
{
if(self.showLoginView)
{
LoginView()
}
else if(self.showResetView)
{
ResetView()
}
else
{
NavigationView {
VStack(alignment: .leading)
{
Text(EMAIL).foregroundColor(Color.white)
TextField("", text: self.$emailid)
.foregroundColor(Color.black)
.padding(EdgeInsets(top: 0, leading: 0, bottom: 45, trailing: 0))
.textFieldStyle(RoundedBorderTextFieldStyle())
Text(PHONE_NUMBER).foregroundColor(Color.white)
TextField("", text: self.$phoneno)
.foregroundColor(Color.black)
.padding(EdgeInsets(top: 0, leading: 0, bottom: 45, trailing: 0))
.textFieldStyle(RoundedBorderTextFieldStyle())
Button(action: self.forgotPwdAction) {
HStack(alignment: .center) {
Spacer()
Text(OK_BTN).font(.headline).fontWeight(.bold).foregroundColor(Color.white).multilineTextAlignment(.center)
Spacer()
}
}.padding().background(Color.green)
Spacer()
}.padding(40)
.background(Color.black)
.navigationBarTitle("Forgot Password")
.navigationBarItems(leading: self.btnBack)
.navigationBarHidden(false)
}
}
}
.background(Color.black)
.edgesIgnoringSafeArea(.all)
.statusBar(hidden: true)
}
}