Fixes this view at its ideal size in the specified dimensions.
- iOS 13.0+Beta
- macOS 10.15+Beta
- Mac Catalyst 13.0+Beta
- tvOS 13.0+Beta
- watchOS 6.0+Beta
- Xcode 11.0+Beta
A Boolean value indicating whether to fix the width of the view.
A Boolean value indicating whether to fix the height of the view.
A view that fixes this view at its ideal size in the dimensions specified by
This example shows the effect of
fixed on a text view that is wider than its parent, preserving the ideal, untruncated width of the text view.
Without the call to
fixed, the text view has its width set by its parent, which truncates the line of text.