Ios app lifecycle

From HoangNguyen0403/agent-skills-standard · View interactive version

Ios app lifecycle is an AI agent skill from the GitHub repository HoangNguyen0403/agent-skills-standard. Configure AppDelegate, SceneDelegate, deep linking, and background tasks. Use when configuring iOS app lifecycle, deep linking, or background task scheduling.

How to use this skill

Skill file

iOS App Lifecycle

**Priority: P0 (CRITICAL)**

Implementation Workflow

  1. Configure SceneDelegate — Use for UI windows and scene-specific state in iOS 13+.
  2. Keep AppDelegate slim — Focus on app-wide setup (DI, Analytics, Push registration). Move initialization logic to dedicated Bootstrapper or AppCoordinator.
  3. Handle deep links — Prefer Universal Links over custom URL schemes. Handle via scene(_:continue:userActivity:). Route through Root Coordinator.
  4. Schedule background tasks — Use BGTaskScheduler for periodic data refresh. Always handle expirationHandler to avoid system kill.

See bootstrapper pattern and background task examples

Anti-Patterns

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.