SweetUI

Search items

Jump to an item

component

separator

Orientation, insets, native Divider.

separatordividerlayoutinsetmodifier
separator, light

On iPad

The same installed source at a regular width. It adapts its layout without a separate design.

separator on iPad, light

Install

With the sweetui tool (brew install mangobyte-dev/tap/sweetui):

sweetui install separator --destination Sources/YourFeature/Components

Installs in order: separator 0.2.1. Point --destination at a folder inside the consuming target's sources.

Usage

Divider()
    .registrySeparator(insets: EdgeInsets(top: 0, leading: 16, bottom: 0, trailing: 16))

Divider()
    .registrySeparator(.vertical)

Accessibility contract

  • Noninteractive separator.
  • Semantic color, adapts appearance.
  • Insets mirror RTL.
  • MUST NOT be redundant.

Details

Kindcomponent
Version0.2.1
PlatformsiOS 26.0+
Dependenciesnone
SourceRegistry/sources/components/RegistrySeparatorModifier.swift
Xcode previewSeparator