We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b5882b commit 638fc76Copy full SHA for 638fc76
src/ios/GS1 Encoders App/GS1Encoder.swift
@@ -187,8 +187,8 @@ class GS1Encoder {
187
* - gs1_encoder_getVersion()
188
*
189
*/
190
- func getSym() -> Int {
191
- return Int(gs1_encoder_getSym(ctx))
+ func getSym() -> Symbology {
+ return Symbology(rawValue: gs1_encoder_getSym(ctx).rawValue) ?? Symbology.NONE
192
}
193
194
/**
@@ -199,8 +199,8 @@ class GS1Encoder {
199
* - gs1_encoder_setVersion()
200
201
202
- func setSym(_ value: Int) throws {
203
- if (!gs1_encoder_setSym(ctx, Int32(value))) {
+ func setSym(_ value: Symbology) throws {
+ if (!gs1_encoder_setSym(ctx, gs1_encoder_symbologies(value.rawValue))) {
204
throw GS1EncoderError.parameterError(msg: self.getErrMsg())
205
206
0 commit comments