[ad_1]
How do I modify the navBar shade to crimson in SwiftUI utilizing an extension I need to apply to my view?
My extensions
func createToolbarSettings(dismissAction: (() -> Void)?, title: LocalizedStringKey, tag: String) -> some View {
self.toolbar(content material: {
ToolbarItem(placement: .navigationBarLeading) {
Button(motion: {
dismissAction?()
}, label: {
Picture.arrowBack
.resizable()
.aspectRatio(contentMode: .match)
.body(width: .genericFrame, peak: .genericFrame)
})
.tag(tag)
}
ToolbarItem(placement: .principal) {
Textual content(title)
.font(.montserratFontMapping(ofSize: .genericFrame, weight: .medium))
.foregroundColor(.white)
}
})
}
[ad_2]