We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here is a real example of the issue I'm facing:
An attributed text with an icon set in a UIButton.
UIButton
let button = UIButton(type: .system) let attachment = TextAttachment() attachment.image = MediaActionType.connect.iconImage let attributedString = "".withAttachment(attachment) + " Connect With \(name)".withTextColor(.brand).withFont(.brandon(style: .medium, size: 16.0)) button.setAttributedTitle(attributedString, for: .normal)
This doesn't show the icon but if works if I use NSMutableAttributedString directly:
NSMutableAttributedString
let button = UIButton(type: .system) let attachment = TextAttachment() attachment.image = MediaActionType.connect.iconImage let mutableAttributedString = NSMutableAttributedString() mutableAttributedString.append(NSAttributedString(attachment: attachment)) mutableAttributedString.append(" Connect With \(name)".withTextColor(.brand).withFont(.brandon(style: .medium, size: 16.0))) button.setAttributedTitle(mutableAttributedString, for: .normal)
I'm using Xcode 13.1, CocoaPods and SwiftyAttributes version is 5.1.1. Any thoughts? Thank you.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Here is a real example of the issue I'm facing:
An attributed text with an icon set in a
UIButton
.This doesn't show the icon but if works if I use
NSMutableAttributedString
directly:I'm using Xcode 13.1, CocoaPods and SwiftyAttributes version is 5.1.1.
Any thoughts?
Thank you.
The text was updated successfully, but these errors were encountered: