---
title: main()
framework: appkit
role: symbol
role_heading: Type Method
path: appkit/nsapplicationdelegate/main()
---

# main()

Provides the top-level entry point for the app.

## Declaration

```swift
static func main()
```
