Skip to content
Text Button preview
Rendered from the SwiftUI source on this page.

Text Button

From syxUI — written for both platforms, not translated between them.

A borderless text button with a trailing arrow.

Buttons · SwiftUI · iOS 17

  • buttons
  • swiftui

The actual source

GhostButtonCard.swift
// Text Button · syxUI · https://syxui.dev/components/btn-ghost
// Free in any project. Keep this line and credit syxUI where a person can read it.

import SwiftUI

let btnBlue = Color(red: 0.0, green: 0.47, blue: 1.0)

// Ghost / text button
struct GhostButtonCard: View {
    var body: some View {
        HStack(spacing: 6) {
            Text("Skip for now").font(.system(size: 16, weight: .medium))
            Image(systemName: "arrow.right").font(.system(size: 13, weight: .semibold))
        }.foregroundStyle(btnBlue).padding(.vertical, 14).padding(.horizontal, 20)
    }
}
iOS 17 · No dependencies

Dependencies

SwiftUI
No external dependencies

Requires iOS 17