extension.swift
extension UINavigationBar {
@available(iOS 13.0, *)
private func applyAppearance() {
let appearance = UINavigationBarAppearance()
appearance.configureWithDefaultBackground()
appearance.shadowImage = UIImage()
appearance.shadowColor = .clear
appearance.backgroundImage = UIImage()
appearance.backgroundColor = .white
standardAppearance = appearance
scrollEdgeAppearance = appearance
}
}
これで消せます。