Releases: Rightpoint/BonMot
Releases · Rightpoint/BonMot
3.0.0.beta.2
See all commits since beta 1 here.
Minor Changes & Bug Fixes
- Fix incorrect documentation of
-setBonString:
in ReadMe.
3.0.0.beta.1
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 includeBonMot/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 toBONTextable
to better express how it is used. - Removed previously deprecated
-[BONText debugDescriptionIncludeImageAddresses:]
. Use-[BONText debugStringIncludingImageAddresses:]
instead.
Deprecations
- Deprecated
-textColor
in favor of-color
on bothBONChain
andBONText
.-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 matchingBONChain
s andBONText
s 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
2.4
See all commits since last release here.
New Features:
- Add nullability and generics support for Swift (@ZevEisenberg, #31 via #107)
Bug Fixes:
- Fix typos in readme (@DaveAlton, #106, and @ZevEisenberg, 55ef9f8)
2.3
2.2
2.1.1
TL;DR various bug fixes and improvements
- add
+horizontalEllipsis
toBONSpecial
(@mr-fixit, #88) - Useful
-description
implementation onBONChain
(#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 runpod 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
Updates/features:
- Add support for
textAlignment
toBONText
andBONChain
: #10, #67 - The
description
ofBONText
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
- Fix version of library embedded in sample project. Bump version number as a result.
With apologies to Randall Munroe:
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!