---
title: "init(frame:inputViewStyle:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uiinputview/init(frame:inputviewstyle:)"
---

# init(frame:inputViewStyle:)

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

## Declaration

```swift
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 doc://com.apple.uikit/documentation/UIKit/UIInputView/Style

## Return Value

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

## Discussion

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

## See Also

### Initializing an input view

- [init(coder:)](uikit/uiinputview/init(coder:).md)
