KennethTsang/GrowingTextView

Text overrides placeholder Swift 3

AndreiBoariu opened this issue · 2 comments

Hey,

First of all, many many thanks for your contribution to this pod. It works amazing ;)

I have a case, when I need to EDIT account description, so in edit case, I have to fill description, but it overrides placeholder text.
screen shot 2017-02-28 at 10 49 50 am

Any idea how to solve this?

//>> Set textview properties
txvBio.maxLength = 250
txvBio.placeHolder = "Short bio (up to 250 characters)"

if isEditingAccount {
self.txvBio.text = curAccount.descriptionDetails
}

If self.txvBio.placeHolder = nil then when delete all text, placeholder no longer appear.

Any ideas ?

Thanks in advance!

Andy

Hey, found solution ;)

In edit case, just set the text first, then set placeholder.
Its working nice ;)

Thanks ;)

Issue fixed. Placeholder will be redrawn after set text.
Thanks!