It Crashes sometimes. Please see the crash log
Crashed: com.apple.main-thread
0 NMSLite 0x2b0cc0 UIView.takeScreenshot() -> UIImage (NavigationStack.swift:137)
1 UIKit 0x26ecf60b GetContextStack + 46
2 NMSLite 0x2b0cdc @objc UIView.takeScreenshot() -> UIImage (NavigationStack.swift)
3 NMSLite 0x2b1150 specialized NavigationStack.navigationController(UINavigationController, willShowViewController : UIViewController, animated : Bool) -> () (NavigationStack.swift:86)
4 NMSLite 0x2b00ec @objc NavigationStack.navigationController(UINavigationController, willShowViewController : UIViewController, animated : Bool) -> () (NavigationStack.swift)
5 UIKit 0x270725f9 -[UINavigationController _startCustomTransition:] + 1204
6 UIKit 0x26f7f9ef -[UINavigationController _startDeferredTransitionIfNeeded:] + 650
7 UIKit 0x26f7f701 -[UINavigationController __viewWillLayoutSubviews] + 52
8 UIKit 0x26f7f677 -[UILayoutContainerView layoutSubviews] + 214
9 UIKit 0x26ebe6fb -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 714
10 QuartzCore 0x24f2f569 -[CALayer layoutSublayers] + 128
11 QuartzCore 0x24f2ad2d CA::Layer::layout_if_needed(CA::Transaction*) + 352
12 QuartzCore 0x24f2abbd CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 16
13 QuartzCore 0x24f2a081 CA::Context::commit_transaction(CA::Transaction*) + 368
14 QuartzCore 0x24f29d55 CA::Transaction::commit() + 520
15 UIKit 0x26eb57f5 _afterCACommitHandler + 176
16 CoreFoundation 0x228ab2b1 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 20
17 CoreFoundation 0x228a95a7 __CFRunLoopDoObservers + 282
18 CoreFoundation 0x228a99e5 __CFRunLoopRun + 972
19 CoreFoundation 0x227f81c9 CFRunLoopRunSpecific + 516
20 CoreFoundation 0x227f7fbd CFRunLoopRunInMode + 108
21 GraphicsServices 0x23e14af9 GSEventRunModal + 160
22 UIKit 0x26f2b435 UIApplicationMain + 144
23 NMSLite 0x1cdf8b main (main.m:21)
24 libdispatch.dylib 0x224a4873 (Missing)