shiny icon indicating copy to clipboard operation
shiny copied to clipboard

.shiny() crash: 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]

Open otymartin opened this issue 2 years ago • 2 comments

@maustinstar

                    HStack {
                        Text("Thank You!")
                            .shiny()
                            .foregroundColor(.moneyRed)
                            .multilineTextAlignment(.leading)
                            .font(.system(size: 42, weight: .heavy))
                        Spacer()
                    }
libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]. Layer: <_TtC7SwiftUIP33_F176A6CF4451B27508D54E2BEAEBFD5415PaintShapeLayer:0x280e9e280; position = CGPoint (0 0); bounds = CGRect (0 0; 0 0); delegate = <_TtC7SwiftUIP33_A34643117F00277B93DEBAB70EC0697122_UIShapeHitTestingView: 0x106133630; frame = (-8.98847e+307 -8.98847e+307; 1.79769e+308 1.79769e+308); transform = [nan, nan, nan, nan, 0, 0]; anchorPoint = (0, 0); autoresizesSubviews = NO; layer = <_TtC7SwiftUIP33_F176A6CF4451B27508D54E2BEAEBFD5415PaintShapeLayer: 0x280e9e280>>; allowsEdgeAntialiasing = YES; allowsGroupOpacity = YES; anchorPoint = CGPoint (0 0); contentsScale = 2; transform = CATransform3D (nan nan 0 0; nan nan 0 0; 0 0 1 0; 0 0 0 1)>'
terminating with uncaught exception of type NSException

otymartin avatar Aug 13 '21 17:08 otymartin

Any update on this? Same issue here.

dch09 avatar Mar 27 '22 16:03 dch09

I can confirm this issue.

esperpanorama avatar May 02 '22 09:05 esperpanorama