Motif Versions Save

Lightweight and customizable stylesheets for iOS

0.2.0

8 years ago

Features

  • Adds support for YAML in addition to JSON as a much more human-friendly way of writing your theme files. See the README for some examples (#38)
    • Of course, while YAML is now the recommended way of writing theme files, JSON will still work
  • Adds a class method to NSValueTransformer to enable easy registration of Motif value transformer subclasses without having to declare a new interface & implementation (#28)
  • Removes the need specify value transformer names as part of applier registration (#43)
  • Adds default value transformers for the following: (#42)
    • Creating UIEdgeInsets from an array, dictionary, or number in a theme file
    • Creating CGSize from an array, dictionary, or number in a theme file
    • Creating CGPoint from an array, dictionary, or number in a theme file
    • Creating UIOffset from an array, dictionary, or number in a theme file
  • Removes old string value transformers in favor of the above
  • Adds a keyword applier registration method for easily specifying enums as strings in themes (#31)

Fixes

  • Fixes a YAML number parsing bug (thanks @jlawton!) (#44)
  • Removes backwards-compatible nullability annotations as Xcode 6.3+ is standard now. (#40)
  • Uses modular imports in headers (#32)
  • Re-throws non-NSUndefinedKeyException exceptions when applying classes (#30)
  • Handles duplicate appliers with different classes (#29)
  • Inlines applier blocks to work around rdar://20723086 (#37)
  • Prevents Carthage from building the tests as part of build 3cc0695
  • Overrides missing designated initializer (#46)

0.1.1

9 years ago

Fixes

  • Vastly improve documentation throughout Motif
  • Remove unused file MTFThemeHierarchy.h
  • Add tests to screen brightness theme applier
  • Error when a theme class' superclass is self-referential or invalid

0.1.2

9 years ago

Fixes

  • Catch theme class application exceptions when live reloading themes
  • Improve theme class application exception copy to better communicate ways to resolve issue

0.1.0

9 years ago

Features

  • Add live reloading dynamic theme applier, see the section in the README for documentation

Fixes

  • Remove unused git submodules from repo
  • Add warning to screen brightness example when run on simulator
  • Ensure that a theme class reference is not applied to a theme class property
  • Fix compilation errors when integrated with an Objective-C++ project
  • Suggest load instead of initialize in Objective-C, due to initialize being called multiple times in categories, which could lead to duplicate appliers being registered