Button

SwiftSail Button Component


Custom SwiftSail button with 4 different styles:

  • primary
  • secondary (outline)
  • neutral
  • link

SwiftButton supports SFSymbols icons or any other resource.

Example:

SailButton(
    style: .primary,
    action: {},
    icon: Image(systemName: "checkmark.circle.fill"),
    title: "Primary button"
)

Buttons