Skyscanner / SkyFloatingLabelTextField

A beautiful and flexible text field control implementation of "Float Label Pattern". Written in Swift.
Apache License 2.0
4.09k stars 540 forks source link

Spacing while copy paste the text. #209

Closed ambujshukla99 closed 6 years ago

ambujshukla99 commented 6 years ago

ℹ Please fill out this template when filing an issue. All lines beginning with an ℹ symbol instruct you with what info we expect. Please remove this line and all above before submitting.

Before you start, are you using the latest SkyFloatingLabelTextField release?

Issues are for feature requests, and bugs; questions should go to Stack Overflow with the tag skyfloatinglabeltextfield.

Report

What did you do?

I have added a textfield inheriting the skylabeltextfield. It creates problem when the text is copy and then paste. Because formatting issue.

What did you expect to happen?

It must created equal space in the textfield string after copy paste.

What happened instead?

I It just keeps the spacing problem.

Environment

ℹ Please fill in this section with information about your environment

Xcode Version: 9.3 SkyFloatingLabelTextField Version: 3.0 Deployment Target:10.x Base SDK: 11.3 Method of Integration: CocoaPods | Carthage | Manual

Project that demonstrates the issue

ℹ Please link to a project we can download that reproduces the issue if applicable.

k0nserv commented 6 years ago

Hey @ambujshukla99 I cannot reproduce this. I copied a value and pasted it back in and got the same result. Can you provide more detail?

ambujshukla99 commented 6 years ago

Hi @k0nserv , thanks for checking the issue. So did you copy paste the string which includes spacing means after putting the text in the textfield. Or did you just copy a string which has no space and then pasted. Because I have copied the string which have no space and then paste on the skyfloatinglabeltextfield but not able to get the formatted string. Please inform if anything unclear.

ambujshukla99 commented 6 years ago

Please check the screenshot, I need to do like this. I have increased the fonts to achieve this. simulator screen shot - iphone 8 plus - 2018-05-29 at 18 47 51

ambujshukla99 commented 6 years ago

It is working fine. It's my bad, I was doing something wrong:(