Created
March 16, 2019 03:46
-
-
Save laevandus/8d72009a59c0d0543e25684b50de004c 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
if traitCollection.preferredContentSizeCategory.isAccessibilityCategory { | |
// align vertically | |
} | |
else { | |
// align horisontally | |
} | |
if traitCollection.preferredContentSizeCategory > .extraLarge { | |
// align vertically | |
} | |
else { | |
// align horisontally | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment