<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIInputView/init(frame:inputViewStyle:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIInputView(im)initWithFrame:inputViewStyle:"
  },
  "title" : "init(frame:inputViewStyle:)"
}
-->

# init(frame:inputViewStyle:)

Initializes and returns an input view using the specified style information.

```
init(frame: CGRect, inputViewStyle: UIInputView.Style)
```

## Parameters

`frame`

The frame rectangle for the view, measured in points. The origin of the frame is relative to the superview in which you plan to add it.

`inputViewStyle`

The style to use when altering the appearance of the view and its subviews. For a list of possible values, see [`UIInputView.Style`](/documentation/UIKit/UIInputView/Style)

## Return Value

An initialized view object or `nil` if the view could not be initialized.

## Discussion

This method is the designated initializer for the view and must be called by your subclass at initialization time.

---

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)