Clone this repo:
  1. d9698d9 Minor cleanup before bumping major. (#7) by ianegordon · 7 weeks ago master v0.2.0
  2. fd8ecc4 Update compiler warnings to march internal build. by Ian Gordon · 2 months ago
  3. 36d06cb Update .travis.yml by ianegordon · 4 months ago
  4. 24951db Update .travis.yml by ianegordon · 4 months ago
  5. 26c9438 Merge pull request #3 from material-foundation/travis by ianegordon · 4 months ago

MDFInternationalization assists in internationalizing your app or components.

Adding RTL calculations to CGRect and other CGGeometry structures.

A view is conceptually positioned within its superview in terms of leading/trailing. When it's time to actually lay out (i.e. setting frames), you position the frame as you usually would, but if you are in the opposite layout direction you use this code to return a CGRect that has been flipped around its vertical axis.

Mirroring Images

A category on UIImage backports iOS 10's [UIImage imageWithHorizontallyFlippedOrientation] to earlier versions of iOS.

Adding semantic context

A category on UIView backports iOS 9‘s -[UIView semanticContentAttribute] and iOS 10’s -[UIView effectiveUserInterfaceLayoutDirection] to earlier versions of iOS.

Usage

See MDCInternationalizationExample for an example of how to use this functionality.

License

MDFInternationalization is licensed under the Apache License Version 2.0.