
Trending Badges
From syxUI — written for both platforms, not translated between them.
Trending and rank badges.
Badges · SwiftUI · iOS 17
- badges
- swiftui
The actual source
TrendingBadges.swift
// Trending Badges · syxUI · https://syxui.dev/components/tag-trending
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
let tgGreen = Color(red: 0.16, green: 0.66, blue: 0.40)
let tgOrange = Color(red: 0.98, green: 0.55, blue: 0.10)
// Trending badges
struct TrendingBadges: View {
var body: some View {
HStack(spacing: 8) {
HStack(spacing: 4) { Image(systemName: "flame.fill").font(.system(size: 11)); Text("Trending").font(.system(size: 13, weight: .semibold)) }.foregroundStyle(tgOrange).padding(.horizontal, 10).padding(.vertical, 6).background(tgOrange.opacity(0.14), in: Capsule())
HStack(spacing: 4) { Image(systemName: "arrow.up.right").font(.system(size: 10, weight: .bold)); Text("#1 Top").font(.system(size: 13, weight: .semibold)) }.foregroundStyle(tgGreen).padding(.horizontal, 10).padding(.vertical, 6).background(tgGreen.opacity(0.14), in: Capsule())
}
}
}
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17

