
Primary Button
From syxUI — written for both platforms, not translated between them.
A full-width filled primary button.
Buttons · SwiftUI · iOS 17
- buttons
- swiftui
The actual source
PrimaryButtonCard.swift
// Primary Button · syxUI · https://syxui.dev/components/btn-primary
// 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)
// Primary filled button
struct PrimaryButtonCard: View {
var body: some View {
Text("Continue").font(.system(size: 16, weight: .semibold)).foregroundStyle(.white)
.frame(maxWidth: .infinity).padding(.vertical, 15)
.background(btnBlue, in: RoundedRectangle(cornerRadius: 14, style: .continuous)).frame(width: 300)
}
}
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


