Skip to content

Commit

Permalink
Updated CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rwbutler committed Aug 17, 2022
1 parent 593ba47 commit d98fa07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [4.4.0] - 2022-08-16
## Changed
- 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)`.
- 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.

## [4.3.2] - 2022-03-16
## Changed
Expand Down
2 changes: 1 addition & 1 deletion TypographyKit/Classes/ViewAdditions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ extension View {

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

0 comments on commit d98fa07

Please sign in to comment.