danielsaidi / Sheeeeeeeeet

Sheeeeeeeeet is a Swift library for creating menus, custom action sheets, context menus etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash when try to present the sheet from ViewController inside the TABBARViewcontroller

ahmedsafadii opened this issue · comments

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present modally an active controller <Summoner_Rift.HomeTabBarViewController: 0x7fa7ec801400>.'
*** First throw call stack:
(
0 CoreFoundation 0x000000011645a6fb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x00000001159feac5 objc_exception_throw + 48
2 UIKitCore 0x000000011ecc4a39 -[UIViewController _presentViewController:withAnimationController:completion:] + 5087
3 UIKitCore 0x000000011ecc711b __63-[UIViewController _presentViewController:animated:completion:]_block_invoke + 98
4 UIKitCore 0x000000011ece0ed8 -[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:] + 294
5 UIKitCore 0x000000011ecdccfd -[_UIViewControllerTransitionContext _runAlongsideCompletions] + 132
6 UIKitCore 0x000000011ecdc9ec -[_UIViewControllerTransitionContext completeTransition:] + 118
7 Foundation 0x0000000111b17151 __NSFireDelayedPerform + 414
8 CoreFoundation 0x00000001163c23e4 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 20
9 CoreFoundation 0x00000001163c1ff2 __CFRunLoopDoTimer + 1026
10 CoreFoundation 0x00000001163c185a __CFRunLoopDoTimers + 266
11 CoreFoundation 0x00000001163bbefc __CFRunLoopRun + 2220
12 CoreFoundation 0x00000001163bb302 CFRunLoopRunSpecific + 626
13 GraphicsServices 0x0000000118f3d2fe GSEventRunModal + 65
14 UIKitCore 0x000000011f2b3ba2 UIApplicationMain + 140
15 Summoner Rift 0x000000010e2af77b main + 75
16 libdyld.dylib 0x0000000117486541 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

I try this
sheet.present(in: self, from: self.view)
and this
sheet.present(in: self, from: self.tabBarController?.tabBar)
and the crash is happen

Hi! It seems like the sheet is being displayed twice? Does this happen in the demo app as well?

Closing due to inactivity