Skip to content
Back to skills

Ios App Lifecycle

ASecurity

Configure AppDelegate, SceneDelegate, deep linking, and background tasks. Use when configuring iOS app lifecycle, deep linking, or background task scheduling.

  • 24 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 4, 2026
documentationswift

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill ios-app-lifecycle --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ios App Lifecycle?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ios App Lifecycle
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-ios-app-lifecycle/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-ios-app-lifecycle)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ios-app-lifecycle
description: Configure AppDelegate, SceneDelegate, deep linking, and background tasks. Use when configuring iOS app lifecycle, deep linking, or background task scheduling.
metadata:
  triggers:
    files:
    - 'AppDelegate.swift'
    - 'SceneDelegate.swift'
    keywords:
    - didFinishLaunchingWithOptions
    - willConnectTo
    - backgroundTask
    - Shortcut
    - UserActivity
---
# 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](references/implementation.md)

## Anti-Patterns

- **No Complex AppDelegate Logic**: Delegate to Bootstrapper service
- **No Manual AppDelegate UIWindow**: Use SceneDelegate for iOS 13+
- **No Sync Launch Network**: Move all launch calls to background threads

## References

- [Lifecycle & Background Tasks](references/implementation.md)

Files in this skill

  • SKILL.md1.4 KB
  • evals/evals.json1.8 KB
  • references/implementation.md1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in documentation →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.