Interactive previews iPhone
Divider Height
Customizing the height of the Divider
Platform Compatibility
iOS 13.0+ iPadOS 13.0+ macOS 10.15+ watchOS 6.0+ tvOS 13..0+ visionOS 1.0+
Tags
SwiftUI Code
Divider()
.frame(height: 5)
.overlay(.brown)
Found an issue or have a suggestion?
Created: June 5, 2025Updated: December 27, 2025
More Divider Components
View allExplore Other Components
Browse allCustom Session Async URL Image
A modifier that adds a URL session for asynchronous images contained in the view to use when fetching image data.
LinearCapacityGaugeStyle
A gauge style that displays a bar that fills from leading to trailing edges as the gauge’s current value increases
NavigationLinkPickerStyle
A picker style represented by a navigation link that presents the options by pushing a List-style picker view.