Skip to content

Latest commit

 

History

History
58 lines (46 loc) · 2.12 KB

CHANGELOG.markdown

File metadata and controls

58 lines (46 loc) · 2.12 KB

2.1.0

Upgrading

  • There shouldn't be any backwards compatibility breaks. Please let me know if you find any!
  • Note that the project, repo, and folders have been renamed to MGBoxKit

Enhancements

  • Optional non-recursive layout: dontLayoutChildren
  • Optional minWidth property
  • Text colour Mush markup: "this string has {#123456|coloured text}"
  • New block properties for onTouchesBegan, onTouchesEnded,
    onTouchesCancelled
  • New UIView convenience CGFloat getters for top, right, bottom, left
  • New line spacing properties for MGLine content: leftLineSpacing, middleLineSpacing, rightLineSpacing

2.0.0

Upgrading

  • MGBox now requires the CoreText framework. Add this to your project.
  • Also add these new files to your project:
    • MGLineStyled.m/h
    • MGMushParser.m/h
    • Categories/NSAttributedString+MGTrim.m/h
    • Categories/UIColor+MGExpanded.m/h
  • MGLine now has a default underlineType of none. For tables using MGTableBoxStyled, replace MGLine with MGLineStyled, or set your MGLine instances to have a borderStyle of MGBorderEtchedTop | MGBorderEdgedBottom.

Enhancements

  • Mush Lightweight Markup
    • Markup similar to Markdown/Textile, providing bold, italic, underline, and monospace.
  • MGLine Now Accepts NSAttributedStrings
  • MGBox Borders
    • Set individual border colours with topBorderColor, rightBorderColor, bottomBorderColor, leftBorderColor.
    • Set all border colours in one go with borderColors.
    • Optionally modify borders directly with topBorder, rightBorder, bottomBorder, leftBorder.
  • MGBox Etched Border Style
    • borderStyle property replaces the deprecated underlineType, and is available in all MGBox subclasses. Allows an etched border style optionally for top/right/bottom/left.
  • New MGLine Text Style Properties
    • Properties for left/middle/right text colours, shadow colours, shadow offsets, alignments.

See the documentation for usage examples of the new APIs.

Deprecated

  • -[MGLine underlineType], replaced by -[MGBox borderStyle]