iOS Dev 9: ScrollView using AutoLayout | Swift 5, XCode 11

Опубликовано: 04 Октябрь 2024
на канале: Emmanuel Okwara
18,752
334

In this lesson, we learn how to add scrollView to a ViewController using AutoLayout.

Steps:
1. Add ScrollView to the ViewController
2. Add constraints to all four corners
3. Add a UIView (content view) and add constraints with the scrollView to all four corners.
4. Set equal width between the UIView and the scrollView.
5. Add height to the UIView (If the height is greater than the height of the device, It automatically becomes scrollable).

Say Hi on Social Media:
LinkedIn:   / emacco  
Twitter:   / its_macco  

If you feel like buying me a coffee :)
https://www.buymeacoffee.com/emmanuel...