title: How can I generate a barcode from a string in Swift?
body: <p>I am a new iOS developer. I was wondering how can I generate a barcode in Swift.</p>
  
  <p>I have the code already, there are multiple resources from where to learn how to read a barcode, but I didn't find any that talks about generating one from a string.</p>
  
  <p>Thanks a lot!</p>
  
  <p>P.S. I know there is a similar question about this, but it's for Objective-C. I don't know Obj-C and I find it difficult coming from .NET.</p>