Is it possible to set a custom font globally or do you have to specify the font at each UI Element individually?
I've written a View Extension based on this post: https://stackoverflow.com/questions/63529909/swiftui-override-the-system-font-with-multiple-styles/63535279#63535279
extension View {
func customFont(_ textStyle: CustomFont.TextStyle) -> some View {
self.modifier(CustomFont(textStyle: textStyle))
}
}
However this does not work with everything like NavigationView Titles.
What would you recommend how to incorporate a custom font globally?
Thanks in advance!