Skyscanner / SkyFloatingLabelTextField

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

Autolayout issue when using scroll view #170

Closed ImranIB closed 6 years ago

ImranIB commented 7 years ago

Report

What did you do?

Adding sky floating label text fields using scroll view

What did you expect to happen?

Email text field not showing at proper place after autolayout using scroll view

What happened instead?

Email text field which is currently at top can show above password in normal scenario.

Environment

Please fill in this section with information about your environment

Xcode Version: 8.3 SkyFloatingLabelTextField Version: 'SkyFloatingLabelTextField', '~> 3.0' Deployment Target: 10.0 Base SDK: Method of Integration: CocoaPods | Carthage | Manual: Using cocoapods

Project that demonstrates the issue

login

k0nserv commented 7 years ago

Hey @ImranIB can you reproduce this outside of your own project? It's hard to gague what the issue might be without a runnable project

ImranIB commented 7 years ago

Just add multiple text fields in a scroll view and do the Autolayout part. Check if the text fields show properly in the scroll view using autolayout.

danya0365 commented 7 years ago

Me too.

bogren commented 7 years ago

How are you laying out the views? As @k0nserv said, are you able to reproduce this outside of your project? Are both fields affected when scrolling? I suspect there is an issue in how you setup the constraints.