With iOS 13, when applying a shadow to my UINavigationBar using
layer.shadowColor = UIColor.red.cgColor layer.shadowOffset = shadow.offset layer.shadowRadius = sh