Skip to content

Commit d98fa07

Browse files
committed
Updated CHANGELOG.md
1 parent 593ba47 commit d98fa07

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [4.4.0] - 2022-08-16
88
## Changed
9-
- SwiftUI already scales fonts so scaling as part of the typography style View modifier e.g. `.typography(style: .interactive)` resulted in fonts being scaled twice. Therefore the default scaling mode when using this modifier in SwiftUI is disabled however the scaling mode can be specified as a parameter e.g. `.typography(style: .interactive, scalingMode: .fontMetrics)`.
9+
- When using the View modifier in SwiftUI, the scaling mode can be specified as a parameter e.g. `.typography(style: .interactive, scalingMode: .fontMetrics)`. By default the scaling mode specified in the configuration will be applied.
1010

1111
## [4.3.2] - 2022-03-16
1212
## Changed

TypographyKit/Classes/ViewAdditions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ extension View {
6060

6161
@available(iOS 13, macCatalyst 13, tvOS 13, watchOS 6, *)
6262
public extension View {
63-
func typography(style: UIFont.TextStyle, scalingMode: ScalingMode? = .disabled) -> some View {
63+
func typography(style: UIFont.TextStyle, scalingMode: ScalingMode? = nil) -> some View {
6464
return modifier(TypographyStyle(scalingMode: scalingMode, style: style))
6565
}
6666
}

0 commit comments

Comments
 (0)