Autumn Sale50% offCOMPOT
Cards & Content DisplaysPro ComponentiOS 16.0+Xcode 15+

Feature Card Basic

Clean card displaying an icon, title, and descriptive feature paragraph.

SwiftUI Implementation

Pure Vanilla Swift • No Dependencies
featureCardBasic.swift
import SwiftUI

struct UseFeatureCardBasic: View {
    
    var body: some View {
        FeatureCardBasic(iconName: "cursorarrow.click.2", featureName: "Feature Name", featureDescription: "Description explaining why the feature is so cool.")
    }
}

#Preview {
    UseFeatureCardBasic()
}


struct FeatureCardBasic: View {
    
    let iconName: String
    let featureName: String
    let featureDescription: String
    
    var body: some View {
        HStack(alignment: .center, spacing: 16) {
            ZStack {
                RoundedRectangle(cornerRadius: 13.0)
                    .foregroundStyle(.tint)
                    .frame(width: 48, height: 48)
                Image(systemName: iconName)
                    .font(.title)
                    .foregroundStyle(.white)
            }
            
            VStack(alignment: .leading, spacing: 4) {
                Text(featureName)
                    .multilineTextAlignment(.leading)
                    .foregroundStyle(.primary)
                    .font(.headline)
                Text(featureDescription)
                    .multilineTextAlignment(.leading)
                    .foregroundStyle(.secondary)
                    .font(.subheadline)
            }
            .frame(maxWidth: 300, alignment: .leading)
            
            Spacer()
        }
        .frame(maxWidth: .infinity, alignment: .leading)
    }
}

#Preview {
    FeatureCardBasic(iconName: "cursorarrow.click.2", featureName: "Feature Name", featureDescription: "Description explaining why the feature is so cool.")
}

Ready to copy and paste directly into any Xcode project running iOS 16.0+.

Recommended Use Cases

  • First-run onboarding flows and feature introductions
  • Paywalls, upgrade prompts, and subscription tiers

Component Details

iOS Compatibility
iOS 16.0+
Xcode Version
Xcode 15+
Platform
iOS
License Tier
Pro
Themes & Contexts
onboardingpaywall
Keywords
onboarding
C

Compot for iOS

Native SwiftUI playground app

Preview all 130+ components interactively on your device and copy code straight to Xcode with 1 tap.

Get Compot on the App Store