Minor fixes

This commit is contained in:
Shaps Benkau 2023-02-06 09:33:23 +00:00
parent d619ce3a08
commit 1877ddf7e4
2 changed files with 17 additions and 18 deletions

View File

@ -96,8 +96,7 @@ private struct DynamicTypeRangeModifier: ViewModifier {
@Environment(\.backportDynamicTypeSize) private var size
private var resolvedSize: Backport<Any>.DynamicTypeSize {
print(range)
return range.contains(size)
range.contains(size)
? size
: max(range.lowerBound, min(range.upperBound, size))
}