Skip to content

Instantly share code, notes, and snippets.

@krummler
Last active April 14, 2020 13:32
Show Gist options
  • Save krummler/0c2676a1e91f60ecff49db361081562f to your computer and use it in GitHub Desktop.
Save krummler/0c2676a1e91f60ecff49db361081562f to your computer and use it in GitHub Desktop.
override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
stack.axis = traitCollection.preferredContentSizeCategory > .extraExtraExtraLarge ? .vertical : .horizontal
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment