@@ -30,11 +30,11 @@ final class MaskingPolicy {
3030 // `init(layer:)` and crash when Core Animation copies them.
3131 static let skipiOS26LayerTypes = Set ( [ " CameraUI.ModeLoupeLayer " ] )
3232
33- static func isCameraUIView ( className: String ) -> Bool {
33+ static func isMaskiOS26ViewType ( className: String ) -> Bool {
3434 maskiOS26ViewTypes. contains ( className)
3535 }
3636
37- static func isCameraUILayer ( className: String ) -> Bool {
37+ static func isSkipiOS26LayerType ( className: String ) -> Bool {
3838 skipiOS26LayerTypes. contains ( className)
3939 }
4040
@@ -100,7 +100,7 @@ final class MaskingPolicy {
100100 // .sublayers on its parent causes CA::Layer::presentation_layer() to call the
101101 // missing initializer, producing a fatal EXC_BREAKPOINT crash. Returning true
102102 // here stops recursion into the subtree before we ever reach that layer.
103- if Constants . isCameraUIView ( className: className) { return true }
103+ if Constants . isMaskiOS26ViewType ( className: className) { return true }
104104
105105 if SessionReplayAssociatedObjects . shouldIgnoreUIView ( view) == true {
106106 return true
@@ -150,7 +150,7 @@ final class MaskingPolicy {
150150 // Checked first so iOS 26 camera chrome is always masked regardless of
151151 // other privacy toggles. Masking stops subtree traversal, avoiding
152152 // `init(layer:)` crashes in private CameraUI layers.
153- if Constants . isCameraUIView ( className: className) { return true }
153+ if Constants . isMaskiOS26ViewType ( className: className) { return true }
154154
155155 // Cheap concrete-type checks first; these short-circuit the
156156 // common cases (`UILabel`, `UIImageView`, `WKWebView`, plain
@@ -223,7 +223,7 @@ final class MaskingPolicy {
223223 /// snapshots them. Skip these outright instead of calling geometry
224224 /// helpers that can trigger `init(layer:)`.
225225 func shouldSkipLayer( className: String ) -> Bool {
226- Constants . isCameraUILayer ( className: className)
226+ Constants . isSkipiOS26LayerType ( className: className)
227227 }
228228
229229 /// Evaluates whether a `CALayer` that has no backing `UIView` should be masked.
0 commit comments