iOS 14 Picker transition digging - CAPortalLayer

Updated
Feb 7, 2022 12:53 PM
Created
Jan 31, 2022 10:19 AM
Tags
Attributes

transition has been changed from iOS 15

Screenshots in iOS14

image
image

image

Looks like using snapshot to show transition

I found _UIPortalView in tree, then made it visible. then.

image

final class PortalView: UIView {
  
  override class var layerClass: AnyClass {
    NSClassFromString("CAPortalLayer")!
  }
  
}

Shrinking view follows scrolling offset

image

image
<CALayer:0x600002926520; position = CGPoint (68 57.5); bounds = CGRect (0 0; 375 667); delegate = <_UIContextMenuReparentingContainerView: 0x12ee79810; frame = (-119.5 -276; 375 667); layer = <CALayer: 0x600002926520>>; sublayers = (<CABackdropLayer: 0x600002926560>, <CALayer: 0x600002934ce0>); allowsGroupOpacity = YES; backgroundColor = <CGColor 0x60000027e940> [<CGColorSpace 0x600000578360> (kCGColorSpaceICCBased; kCGColorSpaceModelMonochrome; Generic Gray Gamma 2.2 Profile; extended range)] ( 0 1 ); filters = (
    opacityPair
)>

image