Clone this repo:

Branches

  1. 3bf6558 Add Unit test by Ian Gordon · 28 hours ago master
  2. ca7329e Remove checks against nil for not BOOL-casted if statements by Ian Gordon · 29 hours ago
  3. be360ee Fix id -> BOOL cast bugs by Ian Gordon · 2 days ago v0.2.1
  4. d9698d9 Minor cleanup before bumping major. (#7) by ianegordon · 7 weeks ago v0.2.0
  5. fd8ecc4 Update compiler warnings to march internal build. by Ian Gordon · 3 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.