<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/EnvironmentValues/minimumScaleFactor",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI17EnvironmentValuesV18minimumScaleFactor14CoreFoundation7CGFloatVvp"
  },
  "title" : "minimumScaleFactor"
}
-->

# minimumScaleFactor

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

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

## 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)
}
```

![A screenshot showing the effects of setting the minimumScaleFactor on](images/com.apple.SwiftUI/SwiftUI-View-minimumScaleFactor@2x.png)

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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)