Releases: Nirma/Attributed
Eccentric Text
Summary
This is a purely additive release.
The new functionality is the addition of the function uniformLineHeight
:
func uniformLineHeight(_ uniformLineHeight: CGFloat) -> Attributes { ... }
This function is to be used when an attributed string has the same value for both minimumLineHeight
and maximumLineHeight
allowing this to be specified in one line rather than two.
Side Note
Up until now I have not been keeping a change log, despite believing in their value when trying to piece together the history of a repository.
From this release forward there is a proper change log in the root of this repository here.
Red Brick
Version 1.0!
This release is mainly just a refactoring of the API but this update is a breaking change, therefore it might be wise to raise the version number to 1.0.0
.
Rather than extending String
, NSString
and NSAttributedString
directly extensions are now made on an Attributed
class with the clause where Base == (Type)
.
Basically what was before written as "Hello".attributed(with: attributes)
is now written with an .at
after the String
i.e "Hello".at.attributed(with: attributes)
Enjoy!
Melty Text
This is a minor release to support Swift 3.1 with a tiny bit of internal code refactoring.
Enjoy!
Support for all (from iOS 8.0 that is)
This is a minor but important release.
Support has been widened to iOS 8.0+
Jaguar (Panthera onca)
New Features
This release provides support for using attributes NSObliquenessAttributeName
, NSShadowAttributeName
.
These attributes can be accessed by using the corresponding shadow(_ shadow: NSShadow)
and obliqueness(_ value: CGFloat)
methods that were added in this release.
@EndouMari Thank you for adding this!
Improved!
Better!
Attributed!!
First Release!!