Skip to content
Back to skills

Ios App Lifecycle

ASecurity

Standards for AppDelegate, SceneDelegate, Deep Linking, and Background Tasks. Use when managing iOS app lifecycle, deep linking, or background task scheduling. (triggers: AppDelegate.swift, SceneDelegate.swift, didFinishLaunchingWithOptions, willConnectTo, backgroundTask, Shortcut, UserActivity)

  • 67 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 10, 2026
ai-agentsswift

Security analysis

A100/100

Scanned November 10, 2026

npx -y skills add ComeOnOliver/skillshub --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/comeonoliver-ios-app-lifecycle/badge)](https://www.skillsdirectory.com/skills/comeonoliver-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: "Standards for AppDelegate, SceneDelegate, Deep Linking, and Background Tasks. Use when managing iOS app lifecycle, deep linking, or background task scheduling. (triggers: AppDelegate.swift, SceneDelegate.swift, didFinishLaunchingWithOptions, willConnectTo, backgroundTask, Shortcut, UserActivity)"
---

# iOS App Lifecycle Standards

## **Priority: P0**

## Implementation Guidelines

### App & Scene Delegate

- **SceneDelegate**: Use for UI windows and scene-specific state in iOS 13+.
- **AppDelegate**: Focus on app-wide setup (DI, Analytics, Push notification registration).
- **Slim Delegates**: Move initialization logic to dedicated `Bootstrapper` or `AppCoordinator`.

### Deep Linking

- **Universal Links**: Prefer over custom URL schemes. Handle via `scene(_:continue:userActivity:)`.
- **Handling logic**: Routing should be handled by the Root Coordinator to navigate to specific screens.

### Background Tasks

- **Background Fetch**: Use `BGTaskScheduler` for periodically refreshing data.
- **Expiration**: Handle `expirationHandler` to avoid app kill by the system.

## Anti-Patterns

- **No complex logic in didFinishLaunching**: Use a Bootstrapper service.
- **No UIWindow setup in AppDelegate**: Use SceneDelegate for iOS 13+.
- **No synchronous network calls in launch**: Move to background thread.

## References

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

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 ai-agents →

Comments

Loading comments…

Newsletter

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