swift: allow_versions should be configurable