Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
otymartin opened this issue Aug 13, 2021 · 2 comments

Comments

@otymartin
Copy link

@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
@dch09
Copy link

dch09 commented Mar 27, 2022

Any update on this?
Same issue here.

@esperpanorama
Copy link

I can confirm this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants