UIKit Separator Colors

The UIKit separator colors that are also used in other components, such as the TextField

UIKit Separator Colors - iOS Light Mode Preview

Platform Compatibility

iOS 13.0+ iPadOS 13.0+ tvOS 13.0+ visionOS 1.0+

Tags

SwiftUI Code

Docs
VStack {
  Divider()

  HStack {
    smallRect
    // Divider color
      .foregroundStyle(Color(.separator))
    smallRect
      .foregroundStyle(Color(.opaqueSeparator))

    smallRect
    // Divider color
      .foregroundStyle(Color(.separator))
      .background(.orange)
    smallRect
      .foregroundStyle(Color(.opaqueSeparator))
      .background(.orange)
  }
}

Found an issue or have a suggestion?

Created: May 29, 2025Updated: May 29, 2025