Commit f24c79a
authored
fix: Fix iOS build by restoring UIImage.Orientation references after rename (#3757)
The rename in #3754 (Orientation to CameraOrientation) also replaced
references to UIKit's nested UIImage.Orientation enum, which caused
iOS builds to fail with:
'CameraOrientation' is not a member type of class 'UIKit.UIImage'
UIImage is an Apple UIKit class and its nested enum is literally named
Orientation, so the references must remain UIImage.Orientation.
UIImageOrientation+exif.swift already uses the correct name, which is
how the partial rename was spotted.
Affected (8 occurrences across 7 files):
- packages/react-native-vision-camera/ios/Extensions/Converters/UI+CameraOrientation.swift (x3)
- packages/react-native-vision-camera/ios/Extensions/AVFoundation/AVCapturePhoto+getMediaSampleMetadata.swift
- packages/react-native-vision-camera/ios/Extensions/AVFoundation/AVDepthData+toUIImage.swift
- packages/react-native-vision-camera/ios/Extensions/CoreMedia/CMSampleBuffer+toUIImage.swift
- packages/react-native-vision-camera/ios/Extensions/CIImage+toUIImage.swift
- packages/react-native-vision-camera/ios/Public/MediaSampleMetadata.swift
- packages/react-native-vision-camera-barcode-scanner/ios/Extensions/UI+CameraOrientation.swift1 parent 448d7bf commit f24c79a
7 files changed
Lines changed: 9 additions & 9 deletions
File tree
- packages
- react-native-vision-camera-barcode-scanner/ios/Extensions
- react-native-vision-camera/ios
- Extensions
- AVFoundation
- Converters
- CoreMedia
- Public
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
0 commit comments