Last active
April 14, 2020 13:32
-
-
Save krummler/0c2676a1e91f60ecff49db361081562f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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