Releases: Rightpoint/BonMot
Releases · Rightpoint/BonMot
5.3
New Features
- Add support for Xcode 10 and Swift 4.2 (#344, @ZevEisenberg)
5.2
New Features
- Add the ability to join a sequence of
Composable
and produce an attributed string. The upshot of this is that if you have an array of attributed strings, you can calljoined(separator:)
on them, supplying a string, attributed string, or otherComposable
as the separator, and get an attributed string. (#328 via #329, @ZevEisenberg)
5.1
New Features
- Add support for making a font bold, italic, and bold/italic via the new
.emphasis
attribute. The cool thing about emphasis is that it can modify existing fonts, without having to re-specify the font. This means that you can do something like this:StringStyle(.font(.systemFont(ofSize: 17)), .emphasis(.italic))
, and you'll get an italic version of the system font. Or, you can take any style and get the bold and/or italic version of it without knowing what its font is:someExistingStyle.byAdding(.emphasis([.bold, .italic]))
. Check out the example project for a cool use case for this in XML parsing! (@ZevEisenberg, #303 via #325) - Make
Tracking
'skerning(for:)
method public. (@acacuce, #324)
Improvements
5.0.1
5.0
BonMot 5.0 adds support for Xcode 9 and Swift 4, and drops support for Swift 2.x and 3.x. This means it also requires Xcode 9 and Swift 4. Please don't update if you're still using Xcode 8! In Xcode 9, even if your project is all on Swift 3.2, you can build BonMot using Swift 4, as long as you're using CocoaPods 1.4.0+.
We also snuck in a feature and two bug fixes.
New Features
- Support for Swift 4 and Xcode 9 #296
- Add support for new accessibility attributes introduced in iOS 11, tvOS 11, and watchOS 4 #292
Improvements
- Better Carthage support in tests: #295
Bug Fixes
- Fix a bug where styles that inherit from other styles were not properly overriding their parent styles' attributes #267
- Fix a regression from the BonMot 3.x → 4.0 Swift rewrite. We now once again intelligently remove
NSAttributedStringKey.kern
from the last character, unless it's being concatenated into a large string. #290 (Reason) - Minor readme cleanup.
Breaking Changes
- Drops support for Swift 2.x and 3.x.
Thanks to @Imperiopolis and @joe-goullaud for their help with this release.
4.3.1
Bug Fixes
- Change
link
property to take aURL
instead ofNSURL
Provide compatibility alias forURL
on Swift 2.x. (#277 via #278, @ZevEisenberg)
4.3
New Features
- Add support for text case transforms. You can now transform arbitrary strings or substrings to lowercase, uppercase, and capitalized, with variants for both the default locale or a custom locale. You can also pass a custom transform function to perform whatever string transformations you want. See the Transform.swift and TransformTests.swift for API and usage examples. (#26 via #275, @ZevEisenberg)
Other changes
- Update source code to use SwiftLint 0.17.0
4.2
New Features
- Add support for OpenType fractions. (#243 via #270, @EthanSchatzline)
Bug Fixes
- Allow example app to build with Swift 2.3. (830c34a, @ZevEisenberg)
Other changes
- Update project tooling to build using Xcode 8.2.1 and the latest stable releases of iOS, macOS, tvOS, and watchOS.
4.1.1
Minor Changes in Example App
- Add Taiwanese to language demos. (#268, @ateliercw)
- Scale typographic features like body text. (a24860c)
- Scale accessibility examples. (3176691)
4.1
New Features
- Add support for speaking punctuation, speaking pitch, and speaking language attributes. (#155 via #266, @ZevEisenberg)
Bug Fixes
- Preserve images’ accessibility label through a tinting operation. (#263, @aral)
- Improve compile times by profiling and optimizing the worst offenders. (#262, @ateliercw)
Other changes
- Some SwiftLint style fixes, and pin SwiftLint version. (#264, @ZevEisenberg)
- Fix warnings in Xcode 8.3 beta 1 (#265, @ZevEisenberg)