使用PaypalSDK iOS导航颜色在iOS中未更改

使用PaypalSDK iOS导航颜色在iOS中未更改,ios,swift,paypal,Ios,Swift,Paypal,我们在项目中使用以下Paypal SDK:- 对于导航颜色更改,我们采用以下解决方案:- let paymentViewController = PayPalPaymentViewController(payment: payment, configuration: payPalConfig, delegate: self) paymentViewController?.modalPresentationStyle = .fullScreen self.navigationController

我们在项目中使用以下Paypal SDK:-

对于导航颜色更改,我们采用以下解决方案:-

let paymentViewController = PayPalPaymentViewController(payment: payment, configuration: payPalConfig, delegate: self)
paymentViewController?.modalPresentationStyle = .fullScreen 
self.navigationController?.navigationBar.barTintColor = UIColor.red 
self.navigationController?.navigationBar.isTranslucent = false 
self.navigationController?.present(paymentViewController!, animated: true, completion: nil)
但使用上述解决方案导航颜色不会改变

任何人都有解决办法,那么请帮助我

多谢各位。
Shraddha vaishnani

SDK已被弃用,你为什么要使用它?@PrestonPHX你是对的,但这个项目太旧了,这就是我们没有应用更改的原因。这可能有帮助:谢谢你帮助我,但你的解决方案对我不起作用。如果有其他解决方案,请帮助我。
let paymentViewController = PayPalPaymentViewController(payment: payment, configuration: payPalConfig, delegate: self)
paymentViewController?.modalPresentationStyle = .fullScreen 
paymentViewController.navigationController?.navigationBar.barTintColor = UIColor.red 
paymentViewController.navigationController?.navigationBar.isTranslucent = false 
paymentViewController.navigationController?.present(paymentViewController!, animated: true, completion: nil)