def METHOD_NAME(ctx):
    """A rule that allows select() to select based on the visionOS SDK version."""
    xcode_config = ctx.attr._xcode_config[apple_common.XcodeVersionConfig]
    return config_common.FeatureFlagInfo(value = _strip_version(
        xcode_config.sdk_version_for_platform(
            apple_common.platform.visionos_device,
        ),
    ))