Skip to content

quicklearner4991/UIScrollview-Register-Login-Swift-Ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

UIScrollview-Register-Login-Swift-Ios

Xcode Used 12.4

Swift 5+

How to implement UIScrollview in Register/Login Screen?

  1. Add a scrollview in empty view controller

  2. Increase its height and width to parent ie full height and width

  3. Give uiscrollview constraint to 0 from all sides

  4. Uncheck content layout guides

  5. Add a UIVIew with 0 constraints from all four sides

  6. Apply Equal width and height of UIView to Scrollview

  7. Now add your subviews according to the requirement

  8. GIve last subview a bottom constraint

  9. Final Step - Remove Equal height constraint of UIView

RUN THE APP