
Feature Card
From syxUI — written for both platforms, not translated between them.
A feature highlight with an icon tile, title and description.
Cards · SwiftUI · iOS 17
- cards
- swiftui
The actual source
FeatureCard.swift
// Feature Card · syxUI · https://syxui.dev/components/card-feature
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
extension View {
func formaCard(_ pad: CGFloat = 18) -> some View {
self.padding(pad)
.background(Color(.systemBackground), in: RoundedRectangle(cornerRadius: 20, style: .continuous))
.overlay(RoundedRectangle(cornerRadius: 20, style: .continuous).stroke(Color.primary.opacity(0.06), lineWidth: 1))
.shadow(color: .black.opacity(0.05), radius: 14, x: 0, y: 6)
}
}
// Feature highlight card
struct FeatureCard: View {
let purple = Color(red: 0.55, green: 0.40, blue: 0.90)
var body: some View {
VStack(alignment: .leading, spacing: 12) {
Image(systemName: "bolt.fill").font(.system(size: 20)).foregroundStyle(purple)
.frame(width: 48, height: 48).background(purple.opacity(0.12), in: RoundedRectangle(cornerRadius: 14, style: .continuous))
VStack(alignment: .leading, spacing: 4) {
Text("Lightning Fast").font(.system(size: 16, weight: .semibold))
Text("Sync across all your devices in real time, instantly.").font(.system(size: 13)).foregroundStyle(.secondary).fixedSize(horizontal: false, vertical: true)
}
}.formaCard().frame(width: 220)
}
}
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


