# Custom Pin Code View

**URL:** <https://forums.kodeco.com/t/custom-pin-code-view/51012>\
**Category:** iOS\
**Created:** [September 27, 2018, 8:49pm UTC](https://forums.kodeco.com/t/custom-pin-code-view/51012 "2018-09-27T20:49:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bionik6](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/bionik6/32/108492_2.png) [@bionik6](https://forums.kodeco.com/u/bionik6)\
**Post date:** [September 27, 2018, 8:49pm UTC](https://forums.kodeco.com/t/custom-pin-code-view/51012/1 "2018-09-27T20:49:50Z")

</div>

Hello,

I want to code this screen especially the custom pin code textfield.

I would like to use a view and configure shape layers (by using a CAReplicatorLayer) within it then responds to keyboard by animating the shape layers.

Or can a UITextfield be used in order to have the same result?

I was wondering what is the best solution in order to build the pin code view.

Thanks 🙂

 ![authenticate](https://raywenderlich-com-v3-forums.s3.amazonaws.com/original/3X/3/3/33bafbcd40e096ec29e4e169aa28018258c83467.png)

---

<div class="post-metadata">

**Author:** ![jayantvarma](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jayantvarma/32/111768_2.png) [@jayantvarma](https://forums.kodeco.com/u/jayantvarma)\
**Post date:** [September 27, 2018, 10:02pm UTC](https://forums.kodeco.com/t/custom-pin-code-view/51012/2 "2018-09-27T22:02:13Z")

</div>

Hi @bionik6,  
what you want is not an UITextField but UIControl and UITraits. That way you can have a lot more custom control over what you want to so. You can use simple views or shape layers, that is up to you on how you want to implement it.

cheers,

Jayant

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [March 13, 2019, 12:49pm UTC](https://forums.kodeco.com/t/custom-pin-code-view/51012/3 "2019-03-13T12:49:56Z")

</div>

Closed on March 13, 2019, 12:49pm UTC

This topic was automatically closed after 166 days. New replies are no longer allowed.
