Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue where setting attributedText could override properties (#10)
* Fix issue where setting attributedText could override properties There was a regression in 0.0.5 that caused properties that were set on the label to overwrite the properties of the attributedString the user was setting on attributedText. This fixes that regression by reverting the changes that were made to the didSet block of attributedText. Since there's a valid use-case for wanting to set properties on the label and have them overwrite the properties inside the attributedstring, I've added another function `setAttributedText(_ attributedString: NSAttributedString, afterInheritingLabelAttributesAndConfiguringWithBlock block: ((NSMutableAttributedString) -> NSMutableAttributedString)?)` to support that. * Don't run swiftlint on carthage builds * Add description for new setAttributedString function
- Loading branch information
Showing
4 changed files
with
102 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters