How to make horizontal line in swift?
1. Click on library
2. Type UIView on the search bar "Objects"
3. Drop it in the View Controller where you need it
4. Go to "add constraints"
5. Give it constraints according its placement
6. Give it the height you need it according the line thickness you want
7. Go to inspectors on the left of Xcode
8. Click on the "Attributes inspector"
9. Change the background color according the line color you want
Comments
Post a Comment