<!--
{
  "availability" : [
    "macOS: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "LocalAuthentication",
  "identifier" : "/documentation/LocalAuthentication/LocalAuthenticationView/init(context:label:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Local Authentication",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:28_LocalAuthentication_SwiftUI0aB4ViewV7context5labelACyxGSo9LAContextC_xyXEtcfc"
  },
  "title" : "init(context:label:)"
}
-->

# init(context:label:)

Creates a local authentication view with a label and required context.

```
@MainActor @preconcurrency init(context: LAContext, @ViewBuilder label: () -> Label)
```

## Parameters

`context`

A context used to evaluate authentication policies.

`label`

A label that displays below the authentication view.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)