Releases: Rightpoint/BonMot
4.0.2
Bug Fixes
- Stop breaking the ability to connect sent actions to controls in Interface Builder. (#252, @ZevEisenberg & @KingOfBrian)
- Reinstate missing
hyphenationFactor
documentation, which was lost in the BonMot 4.0 update. (03f971f) - Enable running the example app on-device. (#258, @ZevEisenberg)
Other changes
4.0.1
New Features and Major Changes
- Renamed non-mutating instance method
NSAttributedString.adapt(to:)
toNSAttributedString.adapted(to:)
to conform to Swift API Design Guidelines. (#248, @ZevEisenberg)
Deprecations
- Deprecated instance method
NSAttributedString.adapt(to:)
. (#248)
Minor Changes & Bug Fixes
4.0.0
BonMot 4.0 is a complete rewrite in Swift. It was primarily written by @KingOfBrian (who swears he only set out to write a blog post on Dynamic Type) and @ZevEisenberg, with contributions from @Imperiopolis, @mergesort, @noremac, @dostrander, and others.
The 4.0 API is completely new, and it is not backwards compatible with BonMot 3. The best way to learn about the new API is to check out the ReadMe, and if you are migrating from BonMot 3, there is a migration guide BonMot 4.0 is compatible with Swift 2.2, 2.3, and 3.0.
New Features
- Full Swift rewrite.
- Support for all Apple platforms: iOS, macOS, watchOS, and tvOS.
- Support for Dynamic Type. (Readme)
- Storyboard and XIB integration: apply global named styles via
IBInspectable
properties on common UI elements. (Readme) - Support for advanced OpenType font features including vertical position, small caps, ligatures, and contextual alternates. If you need an OpenType feature that is not supported, please file an issue.
Improvements
4.0 Release Candidate 1
See changes between BonMot 3.2 and 4.0.rc.1.
See all commits since 4.0.beta.1.
New Features
- Add support for vertical position, small caps, ligatures, and contextual alternates font features. (#173)
- Update example app and inline documentation. Add BonMot 3 → 4 migration guide.
Major/Breaking Changes
- Change the
StringStyle.style(...)
method to aStringStyle.init(parts:...)
initializer. (#222) - Renamed and re-scoped
StringStylePart
toStringStyle.Part
. (#232) - Move continuous integration build from Travis to Circle CI. (@dostrander, #230)
- Add a case to
StringStyle.Part
that takes aStringStyle
. Create a newstyled(with:overrideParts:)
function onComposable
. (@Imperiopolis, #233) - Re-scope
XMLRuleStyler
asXMLStyleRule.Styler
. (71e04df)
Minor Changes
- Add
currentStyle
toXMLStyler
protocol'sstyle
function. (d45c042)
4.0.beta.1
BonMot 4.0 is a complete rewrite in Swift. It was primarily written by @KingOfBrian, who swears he only set out to write a blog post on Dynamic Type, and @ZevEisenberg, with input from @Imperiopolis, @mergesort, @noremac, @dostrander, and others.
The 4.0 API is completely new, and it is not backwards compatible with BonMot 3.x. This release is a beta, which means the new API is subject to change a little, but the main feature set is locked down. The goal of this release is to start using the new API in some real apps, including migrating from BonMot 3.x, and see if there are any major sticking points that we want to refine.
The best way to learn about the new API is to check out the ReadMe. If you find a problem or need a clarification, please file an issue or submit a pull request to the feature/swift-first
branch (naming things is hard).
BonMot 4.0 is intended to be compatible with Swift 2.x and 3.0. If you run into problems with Swift compatibility, please file an issue!
We can't wait to hear what you think. Please don't hold back from sending feedback! Like the Swift 3.0 release, this is your chance to register your complaints, because once it's released, it will be harder to make breaking changes.
New Features
- Full Swift rewrite.
- Support for all Apple platforms: iOS, macOS, watchOS, and tvOS.
- Support for Dynamic Type. (Readme)
- Storyboard and XIB integration: apply global named styles via
IBInspectable
properties on common UI elements. (Readme)
Improvements
3.2
See all commits since the last release here
New Features and Major Changes
- Rewrote the code samples in the ReadMe in Swift. (@nevillco, #152)
- Added support for
hyphenationFactor
. (@Imperiopolis, #156) - Added support for embedding URLs in text. (@plarson, #150)
- More powerful and predictable concatenation with the new
-appendLink:separatorTextable:
method, which takes aBONChain
orBONText
instead of a plain string. Replaces the now-deprecatedappendLink:separator:
method. (@nevillco, #160)
Deprecations
- Deprecated
-[BONChain appendLink:separator]
. It is replaced by-[BONChain appendLink:separatorTextable:]
, which takes aBONChain
orBONText
instead of a plain string. This means that you now have full control over the styling of the separator, rather having it pick up the styling of the preceding string. The deprecated method will be removed in a future release. (@nevillco, #160)
Minor Changes & Bug Fixes
- Some build system changes, but builds are still sometimes flaky.
- Specify Ruby version in Travis config and Gemfile.
- Update gems specified in Gemfile.lock.
3.1.1
See all commits since the last release here
Minor Changes & Bug Fixes
- Fix bug related to
BONTag
not copying itsrange
when the tag is copied. (#148, @ZevEisenberg and @Imperiopolis) - Use correct version of CocoaPods in Travis builds.
- Install latest Bundler before Travis builds.
3.1
See all commits since the last release here
New Features and Major Changes
- Added the ability to parse HTML-like tags in strings by mapping tag names to
BONTextable
objects (BONChain
orBONText
). Learn more here. (#69, @Imperiopolis)
Minor Changes & Bug Fixes
- Updated the example project to use CocoaPods 1.0 internally. This has no effect on the version of CocoaPods you use to integrate BonMot into your own project.