Clone this repo:
  1. 59d9fc7 Travis Update (#9) by ianegordon · 12 days ago master stable
  2. 4112e72 Add missing semicolon to strings file by Ian Gordon · 8 weeks ago v0.2.2
  3. 3bf6558 Add Unit test by Ian Gordon · 9 weeks ago
  4. ca7329e Remove checks against nil for not BOOL-casted if statements by Ian Gordon · 9 weeks ago
  5. be360ee Fix id -> BOOL cast bugs by Ian Gordon · 9 weeks ago v0.2.1

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.