惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

小众软件
小众软件
Security Archives - TechRepublic
Security Archives - TechRepublic
Security Latest
Security Latest
K
Kaspersky official blog
P
Palo Alto Networks Blog
T
Threat Research - Cisco Blogs
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
Tor Project blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
A
Arctic Wolf
NISL@THU
NISL@THU
GbyAI
GbyAI
腾讯CDC
罗磊的独立博客
Simon Willison's Weblog
Simon Willison's Weblog
Scott Helme
Scott Helme
S
SegmentFault 最新的问题
Cyberwarzone
Cyberwarzone
Jina AI
Jina AI
S
Schneier on Security
WordPress大学
WordPress大学
云风的 BLOG
云风的 BLOG
博客园 - 【当耐特】
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Spread Privacy
Spread Privacy
C
CXSECURITY Database RSS Feed - CXSecurity.com
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The Register - Security
The Register - Security
C
Cybersecurity and Infrastructure Security Agency CISA
L
Lohrmann on Cybersecurity
V
Vulnerabilities – Threatpost
G
GRAHAM CLULEY
P
Proofpoint News Feed
Cisco Talos Blog
Cisco Talos Blog
博客园_首页
雷峰网
雷峰网
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
V2EX - 技术
V2EX - 技术
O
OpenAI News
博客园 - 司徒正美
S
Security @ Cisco Blogs
Last Week in AI
Last Week in AI
M
MIT News - Artificial intelligence
博客园 - 叶小钗
Vercel News
Vercel News
AI
AI
博客园 - 聂微东
Webroot Blog
Webroot Blog
J
Java Code Geeks

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Building 2 SwiftUI apps in parallel: TipJar Now + HabitHash dual launch
孫昊 · 2026-05-06 · via DEV Community

孫昊

dev.to article #28 (paste-ready) — Building 2 SwiftUI apps in parallel: TipJar Now + HabitHash dual launch (8-week plan)

Calendar: 2026-05-29 09:00 PT (1 week after dev.to #27)
Tags: #ios #swift #swiftui #indie #productivity
Word count: 2000 (technical + reuse pattern + lessons learned)
Series: "Day 60 indie iOS dev" (part 4)


TL;DR

I built two iOS apps in parallel: TipJar Now (one-tap QR code tip jar for service workers) and HabitHash (pseudonymous habit tracker with git-like commit hash). Same SwiftUI / StoreKit 2 / @observable pattern, copy-paste-modify ~80% of code from existing apps. Each MVP is ~8 Swift files, ~600 lines total.

Here's the engineering approach + reuse pattern + 8-week plan.


Why 2 apps in parallel (instead of 1)

Conventional indie wisdom: ship one thing, focus, iterate. But:

  1. Marginal cost is near zero when you reuse 80% of code (IAPManager, SettingsView, paywall, OnboardingView all identical)
  2. 2 apps = 2 ASO slots + 2 keyword landings. Apple Search shows me on twice as many queries
  3. Cross-promo loop: footer in TipJar Now points to HabitHash and vice versa
  4. Data-rich: with 2 launches at once, I can compare conversion / retention / refund across niches faster than sequential

Risk: 2x review cycle, 2x rejection probability (per app, independent). Mitigated by the pre-flight checklist (see my 14 Rejection Reasons 1-pager).

The reuse pattern

After 4 iOS apps, I have a stable shared pattern:

<App>/
├── App/<App>App.swift          # @main + state injection (~15 LOC)
├── IAP/IAPManager.swift        # StoreKit 2 wrapper (~90 LOC, identical)
├── Models/<Domain>.swift       # Domain-specific (varies)
├── Services/<DomainStore>.swift # @Observable + persist (varies)
└── Views/
    ├── ContentView.swift       # Main UI (varies)
    ├── <Edit>View.swift        # Add/edit form
    ├── PaywallView.swift       # IAP unlock UI (~120 LOC, mostly identical)
    ├── SettingsView.swift      # Premium / About (~50 LOC, identical)
    └── OnboardingView.swift    # 3-screen tutorial (~80 LOC)

Enter fullscreen mode Exit fullscreen mode

~80% reusable:

  • IAPManager.swift: copy-paste, change premiumProductID
  • PaywallView.swift: copy-paste, change feature list
  • SettingsView About section: copy-paste, change Privacy Policy URL
  • OnboardingView: copy-paste, change copy

~20% domain-specific:

  • Models (Habit vs TipMethod vs Choice vs Event)
  • Store (HabitStore vs TipJarStore)
  • ContentView (grid vs QR display vs wheel)
  • Domain validation logic

TipJar Now: domain models

Service workers (waiters / bartenders / drivers) need to display QR code on demand for one-tap tip transfers. Multi-method support (PayPal / Venmo / WeChat / PayPay).

enum TipMethodKind: String, Codable, CaseIterable {
    case paypal, venmo, wechat, alipay, paypay, linePay
    case cashApp, zelle, revolut, wise

    var displayName: String { /* localized */ }
    var symbol: String { /* SF Symbol icon */ }
}

struct TipMethod: Identifiable, Codable {
    let id: UUID
    var kind: TipMethodKind
    var addressOrLink: String  // PayPal email / Venmo handle / QR URL
    var displayName: String?
    var qrImageData: Data?     // For WeChat / PayPay (custom QR)

    var paymentURL: URL? {
        // Build payment URL from kind + addressOrLink
    }
}

Enter fullscreen mode Exit fullscreen mode

QR generation uses CoreImage:

enum QRGenerator {
    static func image(from string: String) -> UIImage? {
        let context = CIContext()
        let filter = CIFilter.qrCodeGenerator()
        filter.message = Data(string.utf8)
        filter.correctionLevel = "M"
        guard let output = filter.outputImage else { return nil }
        let scaled = output.transformed(by: CGAffineTransform(scaleX: 10, y: 10))
        guard let cg = context.createCGImage(scaled, from: scaled.extent) else { return nil }
        return UIImage(cgImage: cg)
    }
}

Enter fullscreen mode Exit fullscreen mode

ContentView shows a single big QR card with method switcher in toolbar.

Free vs Pro:

  • Free: 1 method
  • Pro $1.99: unlimited methods + Apple Watch + custom themes + custom QR upload

HabitHash: domain models

Pseudonymous habit tracker. No account, no cloud (free). 5 habits max in free, with a "git-like" hash signature for visualizing your commit pattern.

struct Habit: Identifiable, Codable {
    let id: UUID
    var name: String
    var emoji: String
    var colorID: String
    var commits: Set<Date>  // Days committed

    var hashSignature: String {
        // Format: 4 hex digits (total commits) + 2 hex (last 30 days) + 2 hex (current streak)
        let count = commits.count
        let recent = commitCount(lastDays: 30)
        let streak = currentStreak()
        return String(format: "%04x%02x%02x", count, recent, streak)
    }

    func currentStreak() -> Int {
        var count = 0
        let cal = Calendar.current
        var day = cal.startOfDay(for: Date())
        while didCommit(on: day) {
            count += 1
            guard let prev = cal.date(byAdding: .day, value: -1, to: day) else { break }
            day = prev
        }
        return count
    }
}

Enter fullscreen mode Exit fullscreen mode

The hash signature is a fun differentiator — feels like git activity for habits. Programmer-targeted ICP loves this.

ContentView shows:

  • List of habits with name + emoji + streak
  • 7-day commit grid (last 7 days, green if committed)
  • Single tap to commit today

Free vs Pro:

  • Free: 5 habits, 30-day history, 7-day grid
  • Pro $2.99: unlimited habits + unlimited history + iCloud sync + widgets + Apple Watch

ICE scoring (why these 2 over others)

I had 10 iOS app candidates. Why these 2?

App Impact Conf Ease ICE
TipJar Now 8 9 9 6.48
HabitHash 9 8 7 5.04
PromptVault iOS 9 8 7 5.04
FocusBlock 8 8 7 4.48
WaterNow 7 8 8 4.48

TipJar Now wins ICE because:

  • High Impact: real pain point for service workers (no current iOS solution)
  • High Confidence: user testing shows clear value ("I'd pay $1.99 once for this")
  • High Ease: 1 main screen + 1 form + 1 paywall + Apple Watch = ~80 hr build

HabitHash wins ICE because:

  • High Impact: programmer-niche has high LTV (and high paywall conversion)
  • High Confidence: GitHub graph aesthetic is universally loved
  • Medium Ease: heatmap visualization + iCloud sync add complexity

8-week parallel plan

W1: TipJar Now skeleton (60 hr) | HabitHash skeleton (50 hr)
W2: TipJar Apple Watch          | HabitHash heatmap visualization
W3: TipJar widget               | HabitHash widget
W4: TipJar polish + onboarding  | HabitHash onboarding + iCloud sync
W5: Localization (en/ja/zh)     | Localization (en/ja/zh)
W6: Beta + bug fix              | Beta + bug fix
W7: ASC submit (TipJar)         | ASC submit (HabitHash)
W8: Apple review (both)         | Both go live + content launch

Enter fullscreen mode Exit fullscreen mode

Total: 4 weeks of mostly parallel work + 4 weeks of staggered launches. Both ship by Week 8.

What's hard

  1. App Store Review at scale: each app's review may take 24-72 hr. Submitting 2 simultaneously means 2x reject probability. Mitigation: use my 14 Rejection Reasons checklist before submitting.

  2. ASO competition: "tip jar" has low competition (good), "habit tracker" has high (bad). HabitHash needs niche differentiation: "pseudonymous habit tracker no account" (very specific keyword).

  3. Cross-promo balance: too aggressive (footer banner on every screen) feels spammy. Recommended: footer banner only in Settings + Onboarding screen 3.

  4. Code reuse cost: when you find a bug in IAPManager, you fix it in 4-5 places. Mitigation: extract to shared package (SPM local) eventually. For 4-app MVP, copy-paste is fine.

What's easy (because of 4 prior apps)

  1. ASC navigation: I now know exactly where Bundle ID / IAP / Pricing / Privacy / Submit pages are
  2. StoreKit 2 wiring: 90-line IAPManager copy-paste
  3. Paywall design: 120-line PaywallView with feature list update
  4. Localization: Same 3 languages (en/ja/zh-Hans), reuse phrases like "Unlock everything forever"

Anti-pattern: don't overcomplicate

Things I DIDN'T add to MVP (deferred to v1.1+):

  • Multi-currency support (TipJar) — defer
  • Heatmap year view (HabitHash) — defer to W2
  • AI suggestions for habits (HabitHash) — feature creep
  • Backend / cloud sync (both) — defer to Pro tier W4
  • Apple Watch independent app (both) — defer to v1.1
  • Custom QR image upload (TipJar) — defer to v1.1
  • Custom themes (both) — defer

MVP = "minimum viable", not "minimum interesting". Ship the core feature, validate, iterate.

What I'm tracking (Day 30 each app)

TipJar Now:
  - Downloads (target 200-500 organic Day 30)
  - Conversion to Pro (target 5-8%)
  - Top traffic source (Reddit r/bartending? TikTok? service-worker forums?)

HabitHash:
  - Downloads (target 300-800 — programmer ICP, broader reach)
  - Conversion to Pro (target 7-10%)
  - Streak distribution (D7 = how many users have 7-day streak?)

Enter fullscreen mode Exit fullscreen mode

I'll publish Day 30 numbers Substack #23 (likely 2026-06-30 or later).

If both apps clear $200/month sustained, I'll continue Wave 2 (Color Sweep game, ICE 3.92, deferred for higher-cert wins first).

If either fails (< $50/month), I'll kill it and double down on the survivor.


Code samples available

Both MVPs are open scaffolds:

Reuse pattern + IAPManager template: github.com/jiejuefuyou/autoapp-ios-template (placeholder)

See also


Tags

#ios #swift #swiftui #indie #productivity #app #development #testflight

A/B subject candidates

  1. "Building 2 SwiftUI apps in parallel: TipJar Now + HabitHash dual launch (8-week plan)"
  2. "How I built 2 indie iOS apps in 8 weeks (80% code reuse pattern)"
  3. "Day 30 indie iOS dev: shipping 2 new apps (the parallel reuse pattern)"

Cross-platform plan

Platform Date Variant
dev.to 2026-05-29 09:00 PT This piece
Substack 2026-05-27 (already covered in #18) n/a
X 2026-05-29 09:30 PT 8-tweet thread (TipJar + HabitHash demo gifs)
Reddit r/iOSProgramming 2026-05-29 22:00 PT Excerpt + link
HN Show HN 2026-05-30 06:00 PT "Show HN: 2 iOS apps in 8 weeks (80% code reuse)"
知乎专栏 2026-06-05 09:00 JST Chinese version
公众号 2026-06-07 09:00 JST Mobile-friendly version