Skip to content

Releases: Rightpoint/BonMot

5.3

21 Sep 03:32
Compare
Choose a tag to compare
5.3

See all commits since 5.2.

New Features

5.2

01 Mar 21:53
Compare
Choose a tag to compare
5.2

See all commits since 5.1.

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 call joined(separator:) on them, supplying a string, attributed string, or other Composable as the separator, and get an attributed string. (#328 via #329, @ZevEisenberg)

5.1

24 Feb 03:32
Compare
Choose a tag to compare
5.1

See all commits since 5.0.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's kerning(for:) method public. (@acacuce, #324)

Improvements

5.0.1

31 Jan 00:03
Compare
Choose a tag to compare

See all commits since 5.0

Performance Improvements

  • Return existing font if it would be unmodified anyway. (#313, @muukii)

Bug Fixes

  • Stop linting code when building via Carthage. (#309 via #319)
  • Specify swift_version in podspec for compatibility with CocoaPods 1.4.0.

Miscellaneous

  • Update build for Xcode 9.2.
  • Minor readme cleanup.

5.0

13 Oct 17:05
Compare
Choose a tag to compare
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.

See all commits since 4.3.1.

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

30 Mar 19:54
Compare
Choose a tag to compare

See all commits since 4.3

Bug Fixes

  • Change link property to take a URL instead of NSURL Provide compatibility alias for URL on Swift 2.x. (#277 via #278, @ZevEisenberg)

4.3

27 Mar 15:03
Compare
Choose a tag to compare
4.3

See all commits since 4.2

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

19 Feb 05:45
Compare
Choose a tag to compare
4.2

See all commits since 4.1.1

New Features

Bug Fixes

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

07 Feb 12:59
Compare
Choose a tag to compare

See all commits since 4.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

30 Jan 23:02
Compare
Choose a tag to compare
4.1

See all commits since 4.0.2

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