내비게이션바 색 변경하기
배경색 변경하는 방법
방법
struct PageDetailView: View { var isDark = false init() { let appearance = UINavigationBarAppearance() appearance.configureWithOpaqueBackground() appearance.backgroundColor = UIColor.white appearance.titleTextAttributes = [.foregroundColor: UIColor.black, .font : UIFont.systemFont(ofSize: 22)] appearance.largeTitleTextAttributes = [.foregroundColor: UIColor.black] UINavigationBar.appearance().standardAppearance = appearance UINavigationBar.appearance().scrollEdgeAppearance = appearance }
var body: some View { |