---
title: lastKeyView()
framework: securityinterface
role: symbol
role_heading: Instance Method
path: securityinterface/sfauthorizationpluginview/lastkeyview()
---

# lastKeyView()

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

## Declaration

```swift
func lastKeyView() -> 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 last view in the keyboard loop of your custom NSView object.

## See Also

### Setting Up the Keyboard Loop

- [firstKeyView()](securityinterface/sfauthorizationpluginview/firstkeyview().md)
- [firstResponder()](securityinterface/sfauthorizationpluginview/firstresponder().md)
