# How to let user add/edit text on a UIImage in swift

**URL:** <https://forums.kodeco.com/t/how-to-let-user-add-edit-text-on-a-uiimage-in-swift/19510>\
**Category:** Swift\
**Created:** [September 9, 2016, 1:23am UTC](https://forums.kodeco.com/t/how-to-let-user-add-edit-text-on-a-uiimage-in-swift/19510 "2016-09-09T01:23:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zalubski](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/zalubski/32/81494_2.png) [@zalubski](https://forums.kodeco.com/u/zalubski)\
**Post date:** [September 9, 2016, 1:23am UTC](https://forums.kodeco.com/t/how-to-let-user-add-edit-text-on-a-uiimage-in-swift/19510/1 "2016-09-09T01:23:46Z")

</div>

This picture in the link has a blank black box that is a UIImage view. All I am looking to do is have the ability for the user to add text to the box and for it to be fixed there. I would also like for the user to be able to edit the text as well. Picture below

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

---

<div class="post-metadata">

**Author:** ![vimipatel](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/vimipatel/32/83106_2.png) [@vimipatel](https://forums.kodeco.com/u/vimipatel)\
**Post date:** [September 21, 2016, 6:07am UTC](https://forums.kodeco.com/t/how-to-let-user-add-edit-text-on-a-uiimage-in-swift/19510/2 "2016-09-21T06:07:17Z")

</div>

Just add one textfield above that image view. Note that don’t forget set below properties.

```
txtBlank.backgroundColor = [UIColor clearColor];
txtBlank.borderStyle = UITextBorderStyleNone;

```
