BonMot Versions Save

Beautiful, easy attributed strings in Swift

5.3

5 years ago

See all commits since 5.2.

New Features

  • Add support for Xcode 10 and Swift 4.2 (#344, @ZevEisenberg)

5.2

6 years ago

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

6 years ago

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

  • Support building on Xcode 9.3 beta. (@rdingman, #320 via #322)

5.0.1

6 years ago

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

6 years ago

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

Improvements

Bug Fixes

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

7 years ago

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

7 years ago

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

7 years ago

See all commits since 4.1.1

New Features

  • Add support for OpenType fractions. (#243 via #270, @EthanSchatzline)

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

7 years ago

See all commits since 4.1

Minor Changes in Example App

4.1

7 years ago

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

  • Some SwiftLint style fixes, and pin SwiftLint version. (#264, @ZevEisenberg)
  • Fix warnings in Xcode 8.3 beta 1 (#265, @ZevEisenberg)