Xcode Used 12.4
Swift 5+
How to implement UIScrollview in Register/Login Screen?
-
Add a scrollview in empty view controller
-
Increase its height and width to parent ie full height and width
-
Give uiscrollview constraint to 0 from all sides
-
Uncheck content layout guides
-
Add a UIVIew with 0 constraints from all four sides
-
Apply Equal width and height of UIView to Scrollview
-
Now add your subviews according to the requirement
-
GIve last subview a bottom constraint
-
Final Step - Remove Equal height constraint of UIView
RUN THE APP