depth-anything-example/DepthApp/DepthApp.swift (21 lines of code) (raw):

import SwiftUI @main struct CameraApp: App { init() { UINavigationBar.applyCustomAppearance() } var body: some Scene { WindowGroup { CameraView() } } } fileprivate extension UINavigationBar { static func applyCustomAppearance() { let appearance = UINavigationBarAppearance() appearance.backgroundEffect = UIBlurEffect(style: .systemUltraThinMaterial) UINavigationBar.appearance().standardAppearance = appearance UINavigationBar.appearance().compactAppearance = appearance UINavigationBar.appearance().scrollEdgeAppearance = appearance } }