Designer News
Where the design community meets.
Torunto Joined over 9 years ago
wow this color is surprisingly beautiful as a wallpaper
Designer News
Where the design community meets.
Designer News is a large, global community of people working or interested in design and technology.
Have feedback?
I would suggest not using storyboards. Storyboard is not as flexible as doing everything programmatically and it doesn't scale well when you have many people working on one project. Use NSLayoutConstraints and do everything programmatically.
Here is a small example where I:
NSLayoutConstraint.activate([ view.widthAnchor.constraint(equalTo: otherView.widthAnchor, multiplier: 0.5), view.heightAnchor.constraint(equalToConstant: 100), view.centerXAnchor.constraint(equalTo: parent.centerXAnchor, constant: -10), view.topAnchor.constraint(equalTo: parent.topAnchor) ])
Sorry about the formatting. But as you can see, I have total control of how my view is laid out. This should definitely be more familiar to someone with web front end experience (in fact iOS gives you more control IMO).
For a tutorial, a quick YouTube search gave me this: https://www.youtube.com/watch?v=3Xv1mJvwXok