Skip to content

Instantly share code, notes, and snippets.

@denkeni
Last active May 6, 2017 15:07
Show Gist options
  • Save denkeni/3e0f398983738a7851e87e28227d515f to your computer and use it in GitHub Desktop.
Save denkeni/3e0f398983738a7851e87e28227d515f to your computer and use it in GitHub Desktop.
Auto Layout Programmatically 3-3
let subview = UIStackView()
subview.axis = .horizontal
subview.alignment = .center
subview.distribution = .equalSpacing
subview.addArrangedSubview(arrangedSubview1)
subview.addArrangedSubview(arrangedSubview2)
subview.addArrangedSubview(arrangedSubview3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment