Skip to content

Releases: Rightpoint/BonMot

3.0.0.beta.2

15 Apr 23:14
Compare
Choose a tag to compare
3.0.0.beta.2 Pre-release
Pre-release

See all commits since beta 1 here.

Minor Changes & Bug Fixes

  • Fix incorrect documentation of -setBonString: in ReadMe.

3.0.0.beta.1

15 Apr 20:01
Compare
Choose a tag to compare
3.0.0.beta.1 Pre-release
Pre-release

See all commits since the last release here

New Features and Major Changes

  • Added new UIKit utilities, available via the new BonMot/UIKit subspec, which make it easy to configure labels, text fields, and text views with text from BonMot. (#68, @Imperiopolis)
  • Added -[NSAttributedString bon_humanReadableString], which expands special characters out into human-readable strings. This is useful for writing unit tests where you need to compare a BonMot-generated string with an example string which may contain invisible or hard-to-read characters. For example, a string with an embedded image, a non-breaking space, and some text that contains an en dash might be expanded as {image24x36}{noBreakSpace}Monday{enDash}Friday. (#40, @eliotw1 & @ZevEisenberg)
  • Added -lineBreakMode support, so you can specify the line break mode of attributed strings. (#111, @tettoffensive)
  • Added -[BONText generatesEmptyString], so you can find out whether it’s empty in O(1) (constant) time.

Breaking Changes

  • Moved BONTextAlignmentConstraint to the new UIKit subspec, so you’ll need to include BonMot/UIKit in your Podfile if you want to use it. Carthage users should be unaffected by this change, since the project that is exposed to Carthage includes this subspec.
  • Renamed the BONChainable protocol to BONTextable to better express how it is used.
  • Removed previously deprecated -[BONText debugDescriptionIncludeImageAddresses:]. Use -[BONText debugStringIncludingImageAddresses:] instead.

Deprecations

  • Deprecated -textColor in favor of -color on both BONChain and BONText. -textColor will be removed in the next major version update. (#135)
  • Deprecated +[BONText joinTexts:withSeparator]. It is replaced by +[BONText joinTextables:withSeparator], which supports mixing and matching BONChains and BONTexts for both the array to be joined and the separator.

Minor Changes & Bug Fixes

  • Fixed support for case-sensitive file systems. (#118, @ejohansson)
  • Stabilized flaky continuous integration builds on Travis CI.
  • We now run BONSpecialGenerator.swift every time the example project is built, which makes it easier to add special characters to BonMot. (#89, @eliotw1)
  • Made more use of Objective-C lightweight generics in library and example project.
  • Improved tests and added new ones.
  • Added mechanism to fail the continuous integration build if static analysis fails.
  • De-emphasized BONText in the README. It is still the workhorse class of BonMot, but unless you need to query a property, BONChain should probably be your go-to for styling strings.

2.4.1

08 Mar 21:45
Compare
Choose a tag to compare

See all commits since last release here.

Bug Fixes:

  • Resolve floating point precision warnings raised by stricter warnings in Xcode 7.3.

2.4

07 Mar 18:06
Compare
Choose a tag to compare
2.4

See all commits since last release here.

New Features:

Bug Fixes:

2.3

10 Feb 03:20
Compare
Choose a tag to compare
2.3

See all commits since last release here.

New Features:

  • Added support for many more NSParagraphStyle attributes: (@nuudles, #104)
    • First line head indent
    • Head indent
    • Tail indent
    • Maximum line height
    • Minimum line height
    • Paragraph spacing before
    • Paragraph spacing after

2.2

18 Dec 22:06
Compare
Choose a tag to compare
2.2

New features:

Tweaks/fixes:

  • Make Carthage compatibility explicit with instructions and badge in ReadMe (@nuudles, #100)
  • Minor tweaks and cleanup

2.1.1

20 Nov 16:50
Compare
Choose a tag to compare

TL;DR various bug fixes and improvements

  • add +horizontalEllipsis to BONSpecial (@mr-fixit, #88)
  • Useful -description implementation on BONChain (#86)
  • Rebuild project from fresh pod lib create to get latest settings. This is a step on the road to gathering test coverage reports (#3). For now, when you run pod install in the example project, you then have to add the BonMot target as a build dependency of the example project if you want to see coverage data.
  • Fix outdated documentation of syntax for appending (#95)
  • Allow value of 0 to be passed for indentSpacer: #96
  • Add BonMot logo to example project’s launch screen (694449c)
  • Trivial code cleanup and typo fixes

2.1

31 Oct 06:03
Compare
Choose a tag to compare
2.1

Updates/features:

  • Add support for textAlignment to BONText and BONChain: #10, #67
  • The description of BONText is now more informative, more internally consistent, easier to read, and is now covered by unit tests: #82
  • Code is now formatted with clang-format: #83
  • Updated for Xcode 7.1: #77

Bug fixes:

  • Fixed crash when getting the attributed string from a BONText containing an empty string: #75 - thanks, @ateliercw
  • Fix regression, which was added in #62, where concatenating text to an image would result in an errant \t character being inserted: #78

2.0.1

12 Oct 18:31
Compare
Choose a tag to compare
  • Fix version of library embedded in sample project. Bump version number as a result.

With apologies to Randall Munroe:

"This is the reference implementation of the self-referential joke."

2.0

12 Oct 16:19
Compare
Choose a tag to compare
2.0
  • New, easier concatenation syntax: #72. See ReadMe for details. This is a breaking change from 1.x.
  • Actually enforce some promises that BONText makes in its header comments: #74
  • Minor compatibility updates for Xcode 7 and iOS 9 (but not Swift yet).

Thanks to @ateliercw for help with the new concatenation syntax!