-3

how to join two NSMutableAttributeString into single NSMutableAttributeString in swift

rajes
  • 251
  • 2
  • 4
  • 8

1 Answers1

1

Simple try this:

let a = NSMutableAttributedString(string: "Hello")
let b = NSMutableAttributedString(string: "world!")
a.appendAttributedString(b)

print("final string =\(a)")
Nagarjun
  • 6,557
  • 5
  • 33
  • 51