diff --git a/src/main/java/io/swagger/codegen/v3/generators/swift/AbstractSwiftCodegen.java b/src/main/java/io/swagger/codegen/v3/generators/swift/AbstractSwiftCodegen.java index bad3e63e64..7bfe5cc1af 100644 --- a/src/main/java/io/swagger/codegen/v3/generators/swift/AbstractSwiftCodegen.java +++ b/src/main/java/io/swagger/codegen/v3/generators/swift/AbstractSwiftCodegen.java @@ -145,7 +145,7 @@ protected void addAdditionPropertiesToCodeGenModel(CodegenModel codegenModel, Sc public void processOpts() { super.processOpts(); - if (StringUtils.isNotBlank(templateDir)) { + if (StringUtils.isBlank(templateDir)) { embeddedTemplateDir = templateDir = getTemplateDir(); }