Interactive previews iPhone
Divider Color
Customizing the color 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()
.overlay(.blue)Found an issue or have a suggestion?
Created: June 5, 2025Updated: December 27, 2025
More Divider Components
View allExplore Other Components
Browse allFitted Sheet Sizing
Sets the sizing of the containing presentation. This does not have any effect on smaller devices like iPhone and Apple Watch. On macOS, fitted is the default.
ContainerRelativeShape
A shape that is replaced by an inset version of the current container shape. If no container shape was defined, is replaced by a rectangle
Item Alert
Presents an alert using the given data to produce the alert’s content and a text view as a title.