iOS26 wkWebview Crash CALayer position contains NaN

On my native app, will open a wkWebview to display some content. And it will crash on iOS26: *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan 103.667]. Layer: <CALayer:0x14c2457d0; position = CGPoint (0 0); bounds = CGRect (0 0; 0 48); delegate = <_UIEditMenuListView: 0x14c273980; frame = (nan 0; 0 48); anchorPoint = (inf, 0); alpha = 0; layer = <CALayer: 0x14c2457d0>>; sublayers = (<CALayer: 0x1306320a0>, <CALayer: 0x14c245a70>); opaque = YES; allowsGroupOpacity = YES; anchorPoint = CGPoint (inf 0); opacity = 0>'

Same problem! Do you have any solutions?

Same here. It's inconsistent but frequent.

CALayer position contains NaN: [nan 56]. Layer: <CALayer:0x14467a1f0; position = CGPoint (0 0); bounds = CGRect (0 0; 0 45); delegate = <_UIEditMenuListView: 0x11a307700; frame = (0 6; 0 45); anchorPoint = (26, -0.133333); alpha = 0; layer = <CALayer: 0x14467a1f0>>; sublayers = (<CALayer: 0x1446ad710>, <CALayer: 0x14467a220>); opaque = YES; allowsGroupOpacity = YES; anchorPoint = CGPoint (26 -0.133333); opacity = 0>

I was able to reproduce the issue, and I’ve put together the steps in the link below. https://developer.apple.com/forums/thread/797368

iOS26 wkWebview Crash CALayer position contains NaN
 
 
Q