Skip to content
New issue

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

Feature Request: Add mutable extension to NSAttributedString #47

Open
thejeff77 opened this issue Apr 18, 2020 · 1 comment
Open

Feature Request: Add mutable extension to NSAttributedString #47

thejeff77 opened this issue Apr 18, 2020 · 1 comment

Comments

@thejeff77
Copy link

Hey there!

If I have time I might bust this out myself, but if you're in and working on something, it would be really cool to have a simple var extension of NSAttributedString:

var mutable: NSMutableAttributedString

within NSAttributedString

Which would basically return a mutable equivalent of the attributed string.

Best!

@thejeff77
Copy link
Author

extension NSAttributedString {
  var mutable: NSMutableAttributedString {
    get {
      return NSMutableAttributedString(attributedString: self)
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant