Skip to content
Sample project showing how to use adaptive width string localization on iOS
Swift
Branch: master
Clone or download
Pull request Compare This branch is 1 commit ahead of danielmartin:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AdaptiveStringsSample.xcodeproj
AdaptiveStringsSample
.gitignore
README.md
ResizeAnimation.gif

README.md

AdaptiveStringsSample

Modifications from original repo

  • Switched label to using dynamic body style font
  • Move label configuration to traitCollectionDidChange(_:)
  • Opt welcome label into automatic dynamic font sizing
  • Added label for displaying the current font info

Animated demo

Original Readme

This project is a very simple example that shows how to use adaptive width string localization on iOS apps.

Simply run the project on an iPhone 5s, iPhone 6, or iPad Pro and you will see different Spanish welcome messages depending on the device size.

Author

Daniel Martín https://www.cocoaengineering.com

You can’t perform that action at this time.