Navigation controller issue after presenting a view controller

50 Views Asked by At

im trying to present my view controller and it is presenting fine, but status bar color seems having some shadow, see the attachment

Existing navigation bar or Status bar

But i require

Required design

What is the reason for that shadow, i even tried changing the status bar style and added view controller-based status bar appearance to true and tried with false to nothing works, Help me with this.

Method used for navigation

func navigationMethod() {
    let pharmacyStoryboard = UIStoryboard(name: "Main", bundle: nil)
    let copayCalculationVCidentifier = String(describing: ChangeViewCotnroller.self)
    
    if let copayCalculationViewController = pharmacyStoryboard.instantiateViewController(identifier: copayCalculationVCidentifier, creator: { coder in
        
        let copayCalculationVC = ChangeViewCotnroller(coder: coder)
        return copayCalculationVC
    }) as? ChangeViewCotnroller {
        
        present(copayCalculationViewController, withModelStyle: .automatic, animated: true, completion: nil)
    }
}
0

There are 0 best solutions below