TCMXMLWriter icon indicating copy to clipboard operation
TCMXMLWriter copied to clipboard

Incorporating TCMXMLWriter.h/.m in a Swift project

Open jrubl9427 opened this issue 11 years ago • 0 comments

When initializing a writer in C TCMXMLWriter *writer = [[TCMXMLWriter alloc] initWithOptions:TCMXMLWriterOptionPrettyPrinted]; was used which worked as expected.

In Swift var writer = TCMXMLWriter(options: TCMXMLWriterOptionPrettyPrinted) will not compile and gives error "Cannot invoke 'init' with an argument list of type '(options: Int)'

A workaround is to initialize with var writer = TCMXMLWriter(options: 1), this worked as expected

jrubl9427 avatar Nov 26 '14 20:11 jrubl9427