VP0Design source for AI builders
    View design page

    📱 iOS app UI starter. Paste the design link below into Claude Code, Rork, Lovable, or your AI app builder and ask it to start from this design. These are UI starters. Add your own backend/data logic.

    Pulse — Habit Ring

    templateiosby @vp0

    A calm daily habit tracker. Tap to complete and watch the ring fill.

    #Dark #Habit Tracking #Minimal

    Works withClaude CodeCursorRorkLovablev0& any AI coding agent
    https://vp0.com/source/pulse-habit-ring
    npx vp0com add pulse-habit-ring --target swiftui
    Open in v0

    Or skip the paste

    Install the free VP0 MCP once and your AI builder can search and import any design by name, with no link to copy and no API key.

    Claude Code
    claude mcp add vp0 -- npx -y vp0-mcp
    Cursor / Windsurf
    {
      "mcpServers": {
        "vp0": { "command": "npx", "args": ["-y", "vp0-mcp"] }
      }
    }

    Use with AI

    Prompt

    Build this iOS app design in my project: "Pulse — Habit Ring" — A calm daily habit tracker. Tap to complete and watch the ring fill.. 1. Fetch https://api.vp0.com/designs/pulse-habit-ring/manifest — a JSON manifest whose files[] array contains EVERY source file inline (path + content). 2. Create each file at its exact files[].path and paste its content VERBATIM. Do not re-imagine or restyle the UI — the provided code IS the design. 3. Install dependencies exactly as given by the manifest's installCommand field (skip if null). 4. Render the entry component (targets[].entrypoint) from a screen. Keep SafeAreaView / safe-area insets and the existing styling untouched. 5. It is a UI starter: once it renders pixel-perfect, wire my own data, navigation and backend on top. Human-readable source page: https://vp0.com/source/pulse-habit-ring

    Integration steps
    This is an iOS app UI starter for Expo React Native ("Pulse — Habit Ring").
    Integrate it into the user's Expo project as follows:
    1. No extra dependencies are required.
    2. Create the following file(s) and paste each provided "content" exactly:
       - App.tsx
       - HabitRingView.swift
    3. Render the exported component from a screen (e.g. app/(tabs)/index.tsx). It targets iOS — keep SafeAreaView / safe-area insets and the existing styling.
    4. These are UI starters: reproduce the visual layout faithfully, then wire the user's own data/navigation/backend afterward.

    Preview

    Pulse — Habit Ring preview 1

    Code · 1 file

    Download .zip
    HabitRingView.swift
    raw
    import SwiftUI
    
    struct Habit: Identifiable {
        let id = Int.random(in: 0...99999)
        let name: String
        let icon: String
        var streak: Int
        var done: Bool
    }
    
    struct HabitRingView: View {
        @State private var habits: [Habit] = [
            Habit(name: "Morning stretch", icon: "figure.cooldown", streak: 14, done: true),
            Habit(name: "Read 20 pages", icon: "book", streak: 9, done: false),
            Habit(name: "Deep work block", icon: "target", streak: 21, done: false),
            Habit(name: "Walk outside", icon: "figure.walk", streak: 5, done: false),
            Habit(name: "No screens after 10", icon: "moon", streak: 3, done: false)
        ]
    
        private var completed: Int { habits.filter(\.done).count }
        private var progress: Double { habits.isEmpty ? 0 : Double(completed) / Double(habits.count) }
    
        var body: some View {
            ZStack {
                Color(red: 0.04, green: 0.04, blue: 0.06).ignoresSafeArea()
                ScrollView {
                    VStack(alignment: .leading, spacing: 16) {
                        Text("TUESDAY, 14 MAY")
                            .font(.caption).bold().foregroundColor(Color(red: 0.49, green: 0.36, blue: 1))
                        Text("Today").font(.system(size: 34, weight: .heavy)).foregroundColor(.white)
    
                        ZStack {
                            Circle().stroke(Color.white.opacity(0.08), lineWidth: 9).frame(width: 150, height: 150)
                            Circle()
                                .trim(from: 0, to: progress)
                                .stroke(Color(red: 0.49, green: 0.36, blue: 1), style: StrokeStyle(lineWidth: 9, lineCap: .round))
                                .rotationEffect(.degrees(-90))
                                .frame(width: 150, height: 150)
                                .animation(.easeInOut, value: progress)
                            VStack {
                                Text("\(Int(progress * 100))%").font(.system(size: 36, weight: .heavy)).foregroundColor(.white)
                                Text("\(completed) of \(habits.count)").font(.footnote).foregroundColor(.gray)
                            }
                        }
                        .frame(maxWidth: .infinity)
                        .padding(.vertical, 20)
    
                        ForEach($habits) { $habit in
                            Button {
                                habit.done.toggle()
                                habit.streak += habit.done ? 1 : -1
                            } label: {
                                HStack(spacing: 14) {
                                    Image(systemName: habit.icon)
                                        .font(.title3).frame(width: 46, height: 46)
                                        .background(Color.white.opacity(0.06)).cornerRadius(13)
                                        .foregroundColor(.white)
                                    VStack(alignment: .leading, spacing: 3) {
                                        Text(habit.name).fontWeight(.semibold)
                                            .strikethrough(habit.done)
                                            .foregroundColor(habit.done ? .gray : .white)
                                        Text("🔥 \(habit.streak) days").font(.footnote).foregroundColor(.gray)
                                    }
                                    Spacer()
                                    Image(systemName: habit.done ? "checkmark.circle.fill" : "circle")
                                        .foregroundColor(habit.done ? Color(red: 0.49, green: 0.36, blue: 1) : .gray)
                                        .font(.title2)
                                }
                                .padding(14)
                                .background(Color.white.opacity(0.04)).cornerRadius(18)
                            }
                        }
                    }
                    .padding(22)
                }
            }
        }
    }
    
    #Preview { HabitRingView() }
    

    Machine endpoints

    Open, CORS-enabled, no key. React Native is the default target; append ?target=swiftui where SwiftUI is available.