View ModifieriOS 27.1+macOS 27.1+tvOS 27.1+watchOS 27.1+visionOS 27.1+splitArrangementLayoutSize(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:) in SwiftUI
Declaration
compose().splitArrangementLayoutSize({
minWidth?: number | null,
idealWidth?: number | null,
maxWidth?: number | null,
minHeight?: number | null,
idealHeight?: number | null,
maxHeight?: number | null,
})nonisolated func splitArrangementLayoutSize(
minWidth: CGFloat? = nil,
idealWidth: CGFloat? = nil,
maxWidth: CGFloat? = nil,
minHeight: CGFloat? = nil,
idealHeight: CGFloat? = nil,
maxHeight: CGFloat? = nil
) -> some ViewParameters
options.minWidthnumber | nullThe minimum width for horizontal splits.
options.idealWidthnumber | nullThe ideal width for horizontal splits.
options.maxWidthnumber | nullThe maximum width for horizontal splits.
options.minHeightnumber | nullThe minimum height for vertical splits.
options.idealHeightnumber | nullThe ideal height for vertical splits.
options.maxHeightnumber | nullThe maximum height for vertical splits.
Discussion
Views with higher layoutPriority are sized first using their ideal
size, clamped to their min and max values. Width constraints apply to
horizontal arrangements, and height constraints apply to vertical
arrangements.
ArrangementView {
PhotoView()
.splitArrangementLayoutSize(
minWidth: 200,
idealWidth: 320,
maxWidth: 400)
} secondary: {
InfoView()
}
.arrangementViewStyle(.split)See also
More in Navigation.
- assistiveAccessNavigationIconConfigures the view's icon for purposes of navigation.
- asyncImageURLSessionA modifier that adds a URL session for asynchronous images contained in the view to use when fetching image data.
- contentToolbarPopulates the toolbar of the specified content view type with the views you provide.
- defaultAdaptableTabBarPlacementSpecifies the default placement for the tabs in a tab view using the adaptable sidebar style.
- defaultTabBarPlacementSpecifies the preferred placement for the tabs of a TabView in the TabViewStyle.sidebarAdaptable style on platforms where the tab bar cannot adapt between different representations, and only one representation can be shown.
- navigationBarBackButtonHiddenHides the navigation bar back button for the view.
- navigationBarTitleDisplayModeConfigures the title display mode for this view.
- navigationDestinationAssociates a destination view with a presented data type for use within a navigation stack.
- navigationDocumentConfigures the view's document for purposes of navigation.
- navigationLinkIndicatorVisibilityConfigures whether navigation links show a disclosure indicator.
- navigationSplitViewColumnWidthSets a fixed, preferred width for the column containing this view.
- navigationSubtitleConfigures the view's subtitle for purposes of navigation, using a localized string resource.