iOS / Swift, the SDK, and ZPL

A Art Hayes 3 years 7 months ago
492 2 0

Hi,
 
We bought a ZQ520 to investigate integrating it into an ad-hoc iPad app we're building to print a variety of custom receipts.   If it works to our satisfaction we'll be rolling out dozens of the printers.
 

I'm wondering if anyone has an example of using the SDK within and iOS app with Swift while implementing a Bridging Header?  I've used plenty of Bridging Headers in the past, but the documentation surrounding using the SDK in a modern Swift environment is non-existent.  In the SDK there's a mountain of header files in the /include directory, but I'm not sure which headers to import in the Bridge file. 
EDIT: I'd figured out the ZPL side of things if someone could help with the bridging question above.

 
Any hints or pointers would be greatly appreciated.
 
Thanks.

Please Register or Login to post a reply

2 Replies

J James Landers

Art,
Were you able to actually create a working example of printing from swift using the bridge file.  I have a QLn320 and I am trying to find some swift code that gives some examples how this is done.  Fairly new to swift so not really clear how to leverage the Objective C classes in Swift.

Any pointers or anything you can share?

Any help is appreciated.  Thank you

A Anil Santo

Hi

I had build an app recently in swift for Zebra Printer iMZ320 to meet my requirements i had included these header in the Bridging Header i think this might be sufficient for all zebra printers.

#import "ZebraPrinterConnection.h"
#import "ZebraPrinter.h"
#import "ZebraPrinterFactory.h"
#import "TcpPrinterConnection.h"
#import "MFiBtPrinterConnection.h"
#import "SGD.h"

CONTACT
Can’t find what you’re looking for?