The console was printing the following:
Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem.
If you want to see the backtrace, please set CG_NUMERICS_SHOW_BACKTRACE environmental variable.
I did that and received the following:
Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem.
Backtrace:
<CGPathAddLineToPoint+80>
<+[UIBezierPath _continuousRoundedRectBezierPath:withRoundedCorners:cornerRadii:segments:smoothPillShapes:clampCornerRadii:]
<+[UIBezierPath _continuousRoundedRectBezierPath:withRoundedCorners:cornerRadius:segments:]+184>
<+[UIBezierPath _roundedRectBezierPath:withRoundedCorners:cornerRadius:segments:legacyCorners:]+340>
<-[_UITextMagnifiedLoupeView layoutSubviews]+1256>
<-[UIView(CALayerDelegate) layoutSublayersOfLayer:]+2420>
<_ZN2CA5Layer16layout_if_neededEPNS_11TransactionE+424>
<_ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE+132>
<_ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd+484>
<_ZN2CA11Transaction6commitEv+636>
<_ZN2CA11Transaction25flush_as_runloop_observerEb+68>
<_UIApplicationFlushCATransaction+48>
<__setupUpdateSequence_block_invoke_2+356>
<_UIUpdateSequenceRun+76>
<schedulerStepScheduledMainSection+204>
<runloopSourceCallback+80>
<__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__+24>
<__CFRunLoopDoSource0+168>
<__CFRunLoopDoSources0+220>
<__CFRunLoopRun+780>
<CFRunLoopRunSpecific+536>
<GSEventRunModal+164>
<-[UIApplication _run]+796>
<UIApplicationMain+124>
<$s7SwiftUI17KitRendererCommon33_ACC2C5639A7D76F611E170E831FCA491LLys5NeverOyXlXpFAESpySpys4Int8VGSgG
<$s7SwiftUI6runAppys5NeverOxAA0D0RzlF+180>
<$s7SwiftUI3AppPAAE4mainyyFZ+148>
<$s4Takt0A3AppV5$mainyyFZ+40>
<__debug_main_executable_dylib_entry_point+12>
104fd93d4 10516c924
I also confirmed that it's only occurring on SectorMark and this is in an iOS 18.5 sim.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: