Last active
February 11, 2018 12:37
-
-
Save danielmartin/383799947e6dc4fc3b8865de627b34c9 to your computer and use it in GitHub Desktop.
Describes how to call NSString's variantFittingPresentationWidth(_:)
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
let string = NSLocalizedString("WELCOME_MESSAGE", comment: "This is the welcome message.") as NSString | |
let adaptedString = string.variantFittingPresentationWidth(25) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment