---
title: firstKeyView()
framework: securityinterface
role: symbol
role_heading: Instance Method
path: securityinterface/sfauthorizationpluginview/firstkeyview()
---

# firstKeyView()

Returns the first view in the keyboard loop of the view.

## Declaration

```swift
func firstKeyView() -> NSView!
```

## Discussion

Discussion The default return value of this method is nil. When the authorization plug-in calls this method, your subclass should return the first view in the keyboard loop of your custom NSView object.

## See Also

### Setting Up the Keyboard Loop

- [firstResponder()](securityinterface/sfauthorizationpluginview/firstresponder().md)
- [lastKeyView()](securityinterface/sfauthorizationpluginview/lastkeyview().md)
