How to use StackView in Xcode 9.0 (Swift 4.0)
Hello Everyone, In this tutorial we are going to learn about StackView. StackView is kind of a container which contain subviews and we only have to give the constraint to StackView and it will automatically manage the layout of subviews. You can create the same UI without using stack views. But you will soon see how stack views completely change the way how you layout user interfaces. You can embed a stack view in another stack view to build more complex user interfaces. Don’t get me wrong. It doesn’t mean you do not need to deal with auto layout. You still need to define the layout constraints for the stack views. It just saves you time from creating constraints for every UI element and makes it super easy to add/remove views from the layout. StackView Properties: 1. Axis :- Vertical / Horizontal 2. Alignment :- Help to align the arranged views. 3. Distribution :- Define size and position of arranged views. 4. Spacing :- Define the spacing between the subviews in stack. ScrollView Link : https://youtu.be/7MULx250tyc SizeClasses Link : https://youtu.be/VLh0RIQmCr4 Don't forget to: #SUBSCRIBE #LIKE #SHARE Thank You Happy Coding. -~-~~-~~~-~~-~- Please watch: "Create a Search bar to Search from TableView Xcode 9.0 (Swift 4.0) " https://www.youtube.com/watch?v=wVeX68Iu43E -~-~~-~~~-~~-~-
Download
0 formatsNo download links available.