Creates a new instance with the specified raw value.
If there is no value of the type that corresponds with the specified raw
value, this initializer returns `nil`. For example:
enum PaperSize: String {
case A4, A5, Letter, Legal
}
print(PaperSize(rawValue: "Legal"))
// Prints "Optional(PaperSize.Legal)"
print(PaperSize(rawValue: "Tabloid"))
// Prints "nil"
- Parameter rawValue: The raw value to use for the new instance.
The corresponding value of the raw type.
A new instance initialized with `rawValue` will be equivalent to this
instance. For example:
enum PaperSize: String {
case A4, A5, Letter, Legal
}
let selectedSize = PaperSize.Letter
print(selectedSize.rawValue)
// Prints "Letter"
print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!)
// Prints "true"
The corresponding value of the raw type.
A new instance initialized with `rawValue` will be equivalent to this
instance. For example:
enum PaperSize: String {
case A4, A5, Letter, Legal
}
let selectedSize = PaperSize.Letter
print(selectedSize.rawValue)
// Prints "Letter"
print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!)
// Prints "true"
get · iOS 26.0+
rectilinear
TypeScript
get rectilinear(): CMFormatDescription_Extensions_Value_ProjectionKind
Swift declaration
static let rectilinear: CMFormatDescription.Extensions.Value.ProjectionKind
Indicates rectilinear projection. Generally less than 90 degree field of view with no
barrel distortion.
get · iOS 26.0+
equirectangular
TypeScript
get equirectangular(): CMFormatDescription_Extensions_Value_ProjectionKind
Swift declaration
static let equirectangular: CMFormatDescription.Extensions.Value.ProjectionKind
Indicates equirectangular projection of a 360 degree sphere to a rectangular plane, where longitude
and latitude of the sphere are mapped linearly to the x,y axes of the plane.
get · iOS 26.0+
appleImmersiveVideo
TypeScript
get appleImmersiveVideo(): CMFormatDescription_Extensions_Value_ProjectionKind
Swift declaration
static let appleImmersiveVideo: CMFormatDescription.Extensions.Value.ProjectionKind
Indicates a proprietary projection used for Apple Immersive Video.
get · iOS 26.0+
halfEquirectangular
TypeScript
get halfEquirectangular(): CMFormatDescription_Extensions_Value_ProjectionKind
Swift declaration
static let halfEquirectangular: CMFormatDescription.Extensions.Value.ProjectionKind
Indicates half equirectangular projection of a 180 degree hemisphere to a rectangular plane, where
longitude and latitude of the sphere are mapped linearly to the x,y axes of the plane
get · iOS 26.0+
parametricImmersive
TypeScript
get parametricImmersive(): CMFormatDescription_Extensions_Value_ProjectionKind
Swift declaration
static let parametricImmersive: CMFormatDescription.Extensions.Value.ProjectionKind
Indicates a projection described mathematically by a model of camera lens calibration parameters.
Parameters may be found in lens calibration metadata in ``Key/cameraCalibrationDataLensCollection``
with algorithmKind being ``CameraCalibrationDataLensCollection/AlgorithmKind/parametric``.
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
The iOS SDK compiler rejected this binding: type 'CMFormatDescription.Extensions.Value.ProjectionKind' does not conform to protocol 'OneSDKNamedConstants'