iPhone SwiftUI layouts

Explore SwiftUI APIs, components, and modifiers with interactive iPhone previews, Swift code, and Apple documentation. Compare every available orientation, appearance, and design.

Color

UIKit Separator Colors

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

Explore UIKit Separator Colors on iPhone in portrait, with SwiftUI code and Apple API documentation.

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)
  }
}
iOS 13.0+ iPadOS 13.0+ tvOS 13.0+ visionOS 1.0+

Every available iPhone screenshot for UIKit Separator Colors.

1 views