Skip to content
Back to skills

Ios App Lifecycle

ASecurity

Use `SceneDelegate` as the main entry point for UI lifecycle on iOS 13+, and keep `AppDelegate` focused on app-wide setup only. - In `SceneDelegate`, create the `UIWindow`, attach it to the `UIWindowScene`, and start your root coordinator there. - In `AppDelegate`, keep `application(_:didFinishLaunchingWithOptions:)` slim by delegating dependency registration, analytics setup, and push registration to a dedicated `AppBootstrapper`. - For deep links, prefer Universal Links and handle them thro...

  • 584 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 5, 2026
developmentswift

Security analysis

A100/100

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

Scanned September 5, 2026

npx -y skills add HoangNguyen0403/agent-skills-standard --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/hoangnguyen0403-ios-app-lifecycle-agent-skills-standard/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-ios-app-lifecycle-agent-skills-standard)

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
Use `SceneDelegate` as the main entry point for UI lifecycle on iOS 13+, and keep `AppDelegate` focused on app-wide setup only.

- In `SceneDelegate`, create the `UIWindow`, attach it to the `UIWindowScene`, and start your root coordinator there.
- In `AppDelegate`, keep `application(_:didFinishLaunchingWithOptions:)` slim by delegating dependency registration, analytics setup, and push registration to a dedicated `AppBootstrapper`.
- For deep links, prefer Universal Links and handle them through `scene(_:continue:userActivity:)`, then route into your coordinator instead of putting navigation logic directly in the delegate.
- For background work, use `BGTaskScheduler`, register tasks once at launch, and always set an `expirationHandler` so the system can safely stop unfinished work.
- Avoid synchronous network calls during launch, heavy logic in `AppDelegate`, or manually managing the main window from `AppDelegate` on modern iOS.

Example structure:

```swift
class AppDelegate: UIResponder, UIApplicationDelegate {
    func application(
        _ application: UIApplication,
        didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
    ) -> Bool {
        AppBootstrapper().configure()
        registerBackgroundTasks()
        return true
    }
}

class SceneDelegate: UIResponder, UIWindowSceneDelegate {
    var window: UIWindow?
    var appCoordinator: AppCoordinator?

    func scene(
        _ scene: UIScene,
        willConnectTo session: UISceneSession,
        options connectionOptions: UIScene.ConnectionOptions
    ) {
        guard let windowScene = scene as? UIWindowScene else { return }
        let window = UIWindow(windowScene: windowScene)
        let nav = UINavigationController()
        let coordinator = AppCoordinator(nav: nav)
        coordinator.start()

        window.rootViewController = nav
        self.window = window
        self.appCoordinator = coordinator
        window.makeKeyAndVisible()
    }
}
```

Files in this skill

  • eval-1.baseline.md1.8 KB
  • eval-1.with-skill.md1.9 KB
  • eval-2.baseline.md1.4 KB
  • eval-2.with-skill.md799 B
  • eval-3.baseline.md1.7 KB
  • eval-3.with-skill.md3.1 KB
  • trigger-1.md123 B
  • trigger-2.md164 B
  • trigger-3.md141 B
  • trigger-4.md148 B
  • trigger-5.md132 B

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 development →

Comments

Loading comments…

Newsletter

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