<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SecurityInterface",
  "identifier" : "/documentation/SecurityInterface/SFAuthorizationPluginView/view(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Security Interface"
    ],
    "preciseIdentifier" : "c:objc(cs)SFAuthorizationPluginView(im)viewForType:"
  },
  "title" : "view(for:)"
}
-->

# view(for:)

Returns the appropriate view object for the specified view type.

```
func view(for inType: SFViewType) -> NSView!
```

## Parameters

`inType`

The type of view being requested by the authorization plug-in.

## Return Value

An <doc://com.apple.documentation/documentation/AppKit/NSView> object representing either a credentials view or an identity and credentials view.

## Discussion

When the authorization plug-in calls this method, the [`SFAuthorizationPluginView`](/documentation/SecurityInterface/SFAuthorizationPluginView) instance should return the <doc://com.apple.documentation/documentation/AppKit/NSView> object that represents the view indicated by the specified [`SFViewType`](/documentation/SecurityInterface/SFViewType). The <doc://com.apple.documentation/documentation/AppKit/NSView> object and its contents should have the autoresize flags set to allow the view to be resized.

Note that although a maximum width of 394 points is currently supported, this may change in the future. You should not assume that the width of the <doc://com.apple.documentation/documentation/AppKit/NSView> object will never change.

---

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)