---
title: minimumScaleFactor
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/environmentvalues/minimumscalefactor
---

# minimumScaleFactor

The minimum permissible proportion to shrink the font size to fit the text into the available space.

## Declaration

```swift
var minimumScaleFactor: CGFloat { get set }
```

## Discussion

Discussion In the example below, a label with a minimumScaleFactor of 0.5 draws its text in a font size as small as half of the actual font if needed to fit into the space next to the text input field: HStack {     Text("This is a very long label:")         .lineLimit(1)         .minimumScaleFactor(0.5)     TextField("My Long Text Field", text: $myTextField)         .frame(width: 250, height: 50, alignment: .center) }

You can set the minimum scale factor to any value greater than 0 and less than or equal to 1. The default value is 1. SwiftUI uses this value to shrink text that doesn’t fit in a view when it’s okay to shrink the text. For example, a label with a minimumScaleFactor of 0.5 draws its text in a font size as small as half the actual font if needed.

## See Also

### Managing text layout

- [truncationMode(_:)](swiftui/view/truncationmode(_:).md)
- [truncationMode](swiftui/environmentvalues/truncationmode.md)
- [allowsTightening(_:)](swiftui/view/allowstightening(_:).md)
- [allowsTightening](swiftui/environmentvalues/allowstightening.md)
- [minimumScaleFactor(_:)](swiftui/view/minimumscalefactor(_:).md)
- [baselineOffset(_:)](swiftui/view/baselineoffset(_:).md)
- [kerning(_:)](swiftui/view/kerning(_:).md)
- [tracking(_:)](swiftui/view/tracking(_:).md)
- [flipsForRightToLeftLayoutDirection(_:)](swiftui/view/flipsforrighttoleftlayoutdirection(_:).md)
- [TextAlignment](swiftui/textalignment.md)
