
Beta Badges
From syxUI — written for both platforms, not translated between them.
Beta / alpha / soon labels.
Badges · SwiftUI · iOS 17
- badges
- swiftui
The actual source
BetaBadges.swift
// Beta Badges · syxUI · https://syxui.dev/components/tag-beta
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
let tgPurple = Color(red: 0.55, green: 0.40, blue: 0.90)
let tgIndigo = Color(red: 0.35, green: 0.34, blue: 0.84)
let tgGray = Color(red: 0.55, green: 0.56, blue: 0.60)
func tagPill(_ text: String, _ color: Color) -> some View {
Text(text).font(.system(size: 13, weight: .semibold)).foregroundStyle(color).padding(.horizontal, 12).padding(.vertical, 6).background(color.opacity(0.14), in: Capsule())
}
struct BetaBadges: View { var body: some View { HStack(spacing: 8) { tagPill("BETA", tgPurple); tagPill("ALPHA", tgIndigo); tagPill("SOON", tgGray) } } }
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17

