How to create a store receipt?

Hi,
I'm creating a POS app and need to create a receipt to be printed on a thermal/BT printer or sent by mail. I've searched a lot for it, but searching for "Swift" & "Receipt" often results in app store receipt validation.

Can anyone point me to a tutorial that covers something like this, or a CocoaPod that could work?

Thanks in advance!