[Swift] adds support for default vectors and strings (#6461)

Small fix

Adhere to the new protocol names
This commit is contained in:
mustiikhalil
2021-02-19 12:47:28 +03:00
committed by GitHub
parent 7f47718b6d
commit ae603b9770
9 changed files with 254 additions and 37 deletions

View File

@@ -2434,7 +2434,7 @@ bool Parser::SupportsOptionalScalars() const {
bool Parser::SupportsDefaultVectorsAndStrings() const {
static FLATBUFFERS_CONSTEXPR unsigned long supported_langs =
IDLOptions::kRust;
IDLOptions::kRust | IDLOptions::kSwift;
return !(opts.lang_to_generate & ~supported_langs);
}