diff --git a/Sources/SnapTheme/Theme/Theme+NavigationBarAppearance.swift b/Sources/SnapTheme/Theme/Theme+NavigationBarAppearance.swift index 59667cd..db67704 100644 --- a/Sources/SnapTheme/Theme/Theme+NavigationBarAppearance.swift +++ b/Sources/SnapTheme/Theme/Theme+NavigationBarAppearance.swift @@ -30,14 +30,19 @@ extension Theme { // TODO idea: Set font from theme. Needs to get UIFont from Font. // Converting Font to UIFont is a bit tricky. This will at least use fontDesignDefault of the Theme. // Only applied on app start. - let font = UIFont.preferredFont(for: Theme.FontDefinition.TextStyle.largeTitle.valueUIKit, weight: .bold, design: theme.fontDesignDefault.valueUIFontDescriptor) + let font = UIFont.preferredFont(for: Theme.FontDefinition.TextStyle.headline.valueUIKit, weight: .semibold, design: theme.fontDesignDefault.valueUIFontDescriptor) + let fontLarge = UIFont.preferredFont(for: Theme.FontDefinition.TextStyle.largeTitle.valueUIKit, weight: .bold, design: theme.fontDesignDefault.valueUIFontDescriptor) let attributes: [NSAttributedString.Key : Any] = [ .foregroundColor: UIColor(color), .font: font, ] + let attributesLarge: [NSAttributedString.Key : Any] = [ + .foregroundColor: UIColor(color), + .font: fontLarge, + ] standardAppearance.titleTextAttributes = attributes - standardAppearance.largeTitleTextAttributes = attributes + standardAppearance.largeTitleTextAttributes = attributesLarge UINavigationBar.appearance().standardAppearance = standardAppearance }