Fix id -> BOOL cast bugs
3 files changed
tree: 80a124ff2e32960eceef90743ed4906afc9195d2
  1. MDFInternationalization.xcodeproj/
  2. MDFInternationalizationExample/
  3. MDFInternationalizationExample.xcworkspace/
  4. Sources/
  5. Tests/
  6. .gitignore
  7. .travis.yml
  8. CONTRIBUTING.md
  9. LICENSE
  10. MDFInternationalization.podspec
  11. README.md
README.md

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.